Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Oct 15, 2018 5:24 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Values of Singles in the Variable pane
PostPosted: Tue Nov 20, 2012 6:59 am 
Offline

Joined: Thu Feb 02, 2012 2:46 pm
Posts: 4
Location: England
I am writing a system in which there are several variables taking small values, such as 0.00014, or 1e-11. These are stored in single precision variables. But when I check them in the variables pane, all I see is '0.'
Anyone know a way of getting the debugger to tell you what the value really is? I've used MsgBox(Str(VariableName)) to ensure the value is what I think it is, but I wouldn't want to do that all over the program.

_________________
James Tippett,
Real Basic Release 2012.1.2
running under Mac OS X 10.6.8


Top
 Profile  
Reply with quote  
 Post subject: Re: Values of Singles in the Variable pane
PostPosted: Tue Nov 20, 2012 8:17 am 
Offline
User avatar

Joined: Mon Jan 02, 2012 1:51 am
Posts: 382
Location: India
I found that right side "variable viewer"(don't know what it is called) shows correct value while debugging even for a very small values(I tested with your values like 1e-11).

_________________
Amitava Karan
Real Studio 2012 Release 1
Windows 7 (32 bit)
Mac OS X Version 10.7


Top
 Profile  
Reply with quote  
 Post subject: Re: Values of Singles in the Variable pane
PostPosted: Tue Nov 20, 2012 12:08 pm 
Offline

Joined: Thu Feb 02, 2012 2:46 pm
Posts: 4
Location: England
Thanks for that, Amitava. That must mean there's some weird setting on my machine. All I get is three decimal places. Anything smaller than 0.001 comes up as 0. Did you try it on a Mac or a PC? I'm on a Mac.

_________________
James Tippett,
Real Basic Release 2012.1.2
running under Mac OS X 10.6.8


Top
 Profile  
Reply with quote  
 Post subject: Re: Values of Singles in the Variable pane
PostPosted: Tue Nov 20, 2012 12:47 pm 
Offline
User avatar

Joined: Mon Jan 02, 2012 1:51 am
Posts: 382
Location: India
I tested on Windows 7. ok, will test it on mac tomorrow and let you know.

No idea what's the problem with your system.

_________________
Amitava Karan
Real Studio 2012 Release 1
Windows 7 (32 bit)
Mac OS X Version 10.7


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group