[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Are there standard functions such as FLOAT and TRUNC?
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] Are there standard functions such as FLOAT and TRUNC? |
Date: |
Fri, 19 Feb 2010 16:13:47 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Gaius Mulley <address@hidden> writes:
> Carl Glassberg <address@hidden> writes:
>
>> Hello, again.
>>
>> Are there standard functions such as FLOAT and TRUNC for conversion
>> to/from SHORTREAL/REAL/LONGREAL?
>
> Hi Carl,
>
> yes FLOAT, TRUNC exist as well as, TRUNCS, TRUNCL. Watch out for the
> dialect of Modula-2 though since if you use -fpim2 -fpim3 or -fiso
> TRUNC returns a CARDINAL. Whereas -fpim4 TRUNC returns an INTEGER.
> I'll update the documentation
Hi,
ok I've updated the documentation and should also correct the above it
should read:
TRUNC, FLOAT, STRUNC, SFLOAT, LTRUNC, LFLOAT which matches the naming
schema in ISO. I've also modified gm2 and testsuite to allow SFLOAT,
LFLOAT etc rather than FLOATS, FLOATL
regards,
Gaius