| View previous topic :: View next topic |
| Author |
Message |
geicsge Newbie
Joined: 27 Feb 2009 Posts: 19
|
Posted: Wed Oct 31, 2012 10:51 am Post subject: . and 0 BUG? |
|
|
%a ="0"
if @equal(@substr(%a,1),".")
info @substr(%a,1)
end
... it shows "0"
The same for:
%a ="."
if @equal(@substr(%a,1),"0")
info @substr(%a,1)
end
... it shows "."
Other digits (1,2,...) don't give you this error.
Windows XP and 7, 32 and 64... |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Oct 31, 2012 7:24 pm Post subject: |
|
|
Wow, I never noticed that before... Crazy. Even direct compare does the same thing.
| Code: |
if @equal(0,".")
info 0
end
|
_________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Wed Oct 31, 2012 8:25 pm Post subject: |
|
|
I'm guessing that VDS evaluates all of these as a numeric zero....
| Code: | if @equal("0.0",".")
info 0
end
|
or
| Code: | if @zero(".")
info 0
end
|
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
|