RosettaCodeData/Task/Integer-sequence/Lingo/integer-sequence-4.lingo

18 lines
319 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
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
-- ...