RosettaCodeData/Task/Integer-sequence/Lingo/integer-sequence-4.lingo
2023-07-01 13:44:08 -04:00

17 lines
319 B
Text

the floatPrecision = 0 -- forces floats to be printed without fractional digits
put float(the maxInteger)+1
-- 2147483648
-- max. whole value that can be stored as 8-byte-float precisely
maxFloat = power(2,53) -- 9007199254740992.0
i = 1.0
repeat while i<=maxFloat
put i
i = i+1
end repeat
-- 1
-- 2
-- 3
-- ...