forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


. and 0 BUG?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
geicsge
Newbie


Joined: 27 Feb 2009
Posts: 19

PostPosted: Wed Oct 31, 2012 10:51 am    Post subject: . and 0 BUG? Reply with quote

%a ="0"
if @equal(@substr(%a,1),".")
info @substr(%a,1)
end

... it shows "0" Sad

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
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Oct 31, 2012 7:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Wed Oct 31, 2012 8:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group