I have a problem with long integers when trying to convert a number from what kix would interperet as a string to a floating point value. With this snipet of code:
quote:

Dim $x
$x = 389955656444
$x = $x + 355658985665.0
? $x
?

How would I got about first converting $x to a floating point value in order for the addition function to return the proper value? I tried outputting the info to a file and reading it back in after adding the decimal like so:

quote:

Dim $x
Dim $y
Dim $z
$z = 355688999545.0
$x = "389955656444"
Open(1,%TEMP%\Test.txt,5)
WriteLine(1,"$x.0")
Close(1)
Open(1,%TEMP%\Test.txt,2)
$y = ReadLine(1)
? $y
?
Close(1)
$x = ($y + $z)
? $x
?

To no avail. Any Ideas? Output displays 389955656444.0355688999545 as if it's trying to combine the 2 as strings. Running v4.12 of kix32.exe.
_________________________
Select * from users where clue > 0 [b]0 rows affected.[/b]