Page 1 of 1 1
Topic Options
#134799 - 2005-03-02 01:09 AM FormatNumber bug in Kixtart 4.50 beta 1a
krabourn Offline
Hey THIS is FUN
*****

Registered: 2000-12-11
Posts: 244
Loc: San Antonio, Texas, USA
FormatNumber will cause a script to just stop if a number is less than zero and the first two decimal places are zero.

It does not matter if you have Explicit On or NoVarsInStrings On.

Example: 0.0012

Code:
BREAK ON
DIM $Nul
$Nul = SetOption("Explicit", "On")
$Nul = SetOption("NoVarsInStrings", "On")
$Nul = SetOption("WrapAtEOL", "On")

DIM $Number1, $Number2, $Number3
$Number1 = 1.0012
$Number2 = 0.0123
$Number3 = 0.0012

? "Test Number1: " FormatNumber($Number1, 4)
? "Test Number2: " FormatNumber($Number2, 4)
? "Test Number3: " FormatNumber($Number3, 4)
? "Test CDBL Number3: " FormatNumber(CDbl($Number3), 4)

QUIT 0

_________________________
Kelly

Top
#134800 - 2005-03-08 05:10 PM Re: FormatNumber bug in Kixtart 4.50 beta 1a
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Thanks for this report. FormatNumber is indeed broken for these type of numbers. As it happens, this is an 'old' bug as it also applies to 4.23 anb earlier versions...

Anyway, thanks again, I will fix this in the next update.

Kind regards,

Ruud

Top
#134801 - 2005-03-08 07:33 PM Re: FormatNumber bug in Kixtart 4.50 beta 1a
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Just to let you know that this bug has been fixed in the next build.

Thanks again!

Ruud

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.049 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.