mibuso.com

Microsoft Business Solutions online community
It is currently Mon May 20, 2013 6:06 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [Solved] there is a function to extract only decimal numbers
PostPosted: Fri Jul 17, 2009 9:46 am 
Offline

Joined: Tue Apr 28, 2009 1:31 pm
Posts: 52
Location: Donostia-San Sebastian
Country: Spain (es)
Hi
i want to extract from an amount only the numbers after decimal point, there´s a function or i have to do a little program to do this. thanks

_________________
http://mundonavision.blogspot.com


Top
 Profile E-mail WWW  
 
 Post subject: Re: there is a function to extract only decimal numbers
PostPosted: Fri Jul 17, 2009 9:56 am 
Offline

Joined: Mon Mar 08, 2004 2:42 pm
Posts: 3255
Location: Hannover
Country: Germany (de)
you doesn't need a programm ;-)

Here two, not tested, solutions

Quote:
Name DataType Subtype Length
X Decimal
Y Text 2
I Decimal
Z INTEGER

X := 2368.12; //the dot (.) could also be a comma (,). It's depend. on your local language settings
Y := copystr(format(x),Strpos(format(x),'.')+1,2); //12

I := x mod 1; //0.12
Z := x mod 1 * 100; //12


Regards

_________________
Do you make it right, it works too!


Top
 Profile  
 
 Post subject: Re: there is a function to extract only decimal numbers
PostPosted: Fri Jul 17, 2009 10:03 am 
Offline

Joined: Tue Apr 28, 2009 1:31 pm
Posts: 52
Location: Donostia-San Sebastian
Country: Spain (es)
it work perfectly, thanks so much rené

_________________
http://mundonavision.blogspot.com


Top
 Profile E-mail WWW  
 
 Post subject: Re: there is a function to extract only decimal numbers
PostPosted: Fri Jul 17, 2009 10:48 am 
Offline

Joined: Mon Mar 08, 2004 2:42 pm
Posts: 3255
Location: Hannover
Country: Germany (de)
no problem and welcome

_________________
Do you make it right, it works too!


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


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 post attachments in this forum


Search for:
Jump to: