Number – Talk
Jump to navigation
Jump to search
(No integer in scripting.) |
(precision?) |
||
Line 2: | Line 2: | ||
--[[User:Suma|Suma]] 11:36, 30 June 2006 (CEST) | --[[User:Suma|Suma]] 11:36, 30 June 2006 (CEST) | ||
---- | |||
Is anyone sure on the precision at which numbers can be stored as variables? As a non-programmer, I find this behaviour quite strange. | |||
OFP example : var1 = 123456789 | |||
var1 = var1 - 100000000 | |||
var1 = var1 - 20000000 | |||
var1 = var1 - 3000000 | |||
var1 will return 456'''792''' |
Revision as of 03:55, 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 at which numbers can be stored as variables? As a non-programmer, I find this behaviour quite strange.
OFP example : var1 = 123456789 var1 = var1 - 100000000 var1 = var1 - 20000000 var1 = var1 - 3000000 var1 will return 456792