From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_40,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c255920d7fb4b228,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1993-03-17 22:11:40 PST Newsgroups: comp.lang.ada Path: sparky!uunet!haven.umd.edu!darwin.sura.net!ms!egoforth From: egoforth@cs.wm.edu (Edward R. Goforth) Subject: Help - need trunc function Message-ID: <1993Mar18.055444.1016@cs.wm.edu> Sender: news@cs.wm.edu (News System) Nntp-Posting-Host: md.cs.wm.edu Organization: The College of William and Mary Date: Thu, 18 Mar 1993 05:54:44 GMT Date: 1993-03-18T05:54:44+00:00 List-Id: Help. I'm converting FORTRAN programs (which of course used mixed-mode operations) and I need a "trunc" function which will return the integer portion of the argument. I need to trunc floats to long_integers. A simple long_integer(FLOAT_VAR) rounds instead of just returning the integer portion. This function needs to work for positive, negative and 0 arguments. Please respond via e-mail to "egoforth@cs.wm.edu". Thank you all. Ed... Edward R. Goforth - egoforth@cs.wm.edu Department of Computer Science The College of William and Mary Williamsburg, Virginia