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-Filex==y x, y: aexp The operator '==' compares two numerical expressions for approximate equality. With this operator only eight and one half decimal places (28 bits of the mantissas of floating-point numbers) are compared. '==' is useful for comparing floating-point numbers, where inaccuracies due to rounding can occur. Examples: PRINT 1.0000000001=1 PRINT 1.0000000001==1 --> The numbers 0 and -1 are displayed. a=SINQ(77) !SINQ() (degrees) is a quick, less accurate SIN() function b=SIN(RAD(77)) !RAD() converts from degrees to radians PRINT a=b PRINT a==b --> The numbers 0 (logically FALSE) and -1 (TRUE) appear.