Stop the rounding

Transpower at aol.com Transpower at aol.com
Fri Sep 14 11:42:35 PDT 2007


 
This seems to be a "duh" problem.  cb(10,.0)=INT(25).
 
Regards,
RWS
Transpower Corporation, _www.transpowercorp.com_ 
(http://www.transpowercorp.com) , _transpower at aol.com_ (mailto:transpower at aol.com) 
Certified Systems Engineering and Commercial and Custom Software  
Manufacturing Since 1976
 
In a message dated 9/14/2007 2:10:47 P.M. Eastern Daylight Time,  
scooter6 at gmail.com writes:

Wouldn't just a simple  mid  statement do the trick?
 
   cb=mid(cb,1,3)
 
   Scott



On 9/13/07, Steven  Waters <_swaters at triumphinstruments.com_ 
(mailto:swaters at triumphinstruments.com) >  wrote:  
Good  Day,
I have a Filepro question.

I am trying to strip the decimal  out of a number.
I have this written; 

cb(10,.0)=25

25 is  (10,.2)

if the number for field 25 is 880.88
I get 881 out for  dummy cb
or if the number is 710.00 I get 710 instead of 71000

How  do you strip out a numbers decimal and stop the rounding and dropping of 
 
the 00

Thanks in  advance,
Steve









************************************** See what's new at http://www.aol.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20070914/cab7931d/attachment.html 


More information about the Filepro-list mailing list