Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Jul 26, 2017 11:33 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Math
PostPosted: Wed Aug 22, 2012 5:47 pm 
Offline
User avatar

Joined: Wed Sep 20, 2006 5:12 pm
Posts: 680
Location: Puerto Rico
Dim a1, b1, c1 As Single
a1 = 10.25
b1 = 50

c1 = Format(CSng(a1) * (CSng(b1) / 100 + 1), "Currency")

how i can do this in RS
:idea:

_________________
Thanks for any contribution and God blesses all (I start Using RS in 10/12/2010)
Mac Mini with Lion v10.7.5 and Real Studio 2012r1 Pro And Windows 7 RS2012r1 Personal and Linux RS2012r1 Personal Register user
my Hobbies R/C Turbines Jets Models


Top
 Profile  
Reply with quote  
 Post subject: Re: Math
PostPosted: Wed Aug 22, 2012 6:03 pm 
Offline

Joined: Sat Aug 22, 2009 9:44 am
Posts: 315
Have a look at the documentation for Format:
http://docs.realsoftware.com/index.php/Format

The bottom of the page shows a currency example. Note that format returns a string, so c1 couldn't be a single.

Bill


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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