[Coco] CoCo Emulators

Arthur Flexser flexser at fiu.edu
Sun Mar 21 19:22:33 EDT 2021


The greatest integer in -2.3 is -3, since -2.3 is smaller than -2.  The INT
function is defined as the greatest integer in a number.

Art

On Sun, Mar 21, 2021 at 7:11 PM Melanie and John Mark Mobley <
johnmarkmelanie at gmail.com> wrote:

> Steve,
>
> PRINT FIX(-2.3) to -2.
>
> John Mark Mobley
>
> -----Original Message-----
> From: Coco [mailto:coco-bounces at maltedmedia.com] On Behalf Of Steve Ostrom
> Sent: Sunday, March 21, 2021 4:29 PM
> To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
> Subject: Re: [Coco] CoCo Emulators
>
> The emulator converts INT(2.3) to 2, and it converts INT(-2.3) to -3.
> From (1), I would have expected INT(-2.3) to = -2.
>
> Thanks!
>
> --- Steve ---
>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list