•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The GFA-Basic Compendium
Author      : GFA Systemtechnik GmbH
Version     : GFABasic.HYP v2.98 (12/31/2023)
Subject     : Documentation/Programming
Nodes       : 899
Index Size  : 28056
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Document not found
@help       : Help
@options    : +g -i -s +z
@width      : 75
@hostname   : STRNGSRV
@hostname   : CAB     
@hostname   : HIGHWIRE
@hostname   : THING   
View Ref-FileCINT(x)
CFLOAT(y)

x: aexp
y: iexp

The function CINT() changes a floating point number 'x' into a rounded integer
value.

CFLOAT() changes and integer 'y' into a floating point number. This function is
not normally required and is specified only for the sake of completeness. With
compiled programs, however, it has a use.

Example:

    a=1.2345
    a%=10000
    b%=CINT(a)
    b=CFLOAT(a%)
    PRINT b%,b

--> Prints 1 and 10000 on the screen.