Number – Talk
Jump to navigation
Jump to search
(precision?) |
mNo edit summary |
||
Line 3: | Line 3: | ||
--[[User:Suma|Suma]] 11:36, 30 June 2006 (CEST) | --[[User:Suma|Suma]] 11:36, 30 June 2006 (CEST) | ||
---- | ---- | ||
Is anyone sure on the precision | Is anyone sure on the precision to which numbers can be stored as variables? | ||
OFP example : | |||
var1 = | var1 = 123456789 | ||
var1 = var1 - 123000000 | |||
var1 = var1 - | |||
var1 will return 456'''792''' | var1 will return 456'''792''' | ||
As a non-programmer, I find this behaviour quite strange. --[[User:Ceeeb|Ceeeb]] 08:03, 15 February 2007 (CET) |
Revision as of 08:03, 15 February 2007
I delete a reference to Integer, because there is no such type in OFP scripting.
--Suma 11:36, 30 June 2006 (CEST)
Is anyone sure on the precision to which numbers can be stored as variables?
OFP example :
var1 = 123456789 var1 = var1 - 123000000 var1 will return 456792
As a non-programmer, I find this behaviour quite strange. --Ceeeb 08:03, 15 February 2007 (CET)