dbTalk Databases Forums  

Significant places in division

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Significant places in division in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cass Lewart
 
Posts: n/a

Default Significant places in division - 10-13-2004 , 05:13 PM






In any version of Foxpro when I type
? 1/17 I get 0.06

When I type
? 1/17 pict "99.9999" I get 0.0600

How do I get more significant places?

Cass

--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Cass Lewart Voice (732) 264-9541 Fax (630) 566-0349/_/
_/ e-mail: rlewart (AT) monmouth (DOT) com _/_/_/_/_/_/_/_/_/_/_/_/_/
_/ N 40 deg 23' 41.9", W 74 deg 11' 29.7"/_/_/_/_/_/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

Reply With Quote
  #2  
Old   
Les Farnell
 
Posts: n/a

Default Re: Significant places in division - 10-13-2004 , 10:32 PM






Cass Lewart wrote:
Quote:
In any version of Foxpro when I type
? 1/17 I get 0.06

When I type
? 1/17 pict "99.9999" I get 0.0600

How do I get more significant places?

Cass

Even I think I can answer this one.

SET DECIMALS TO 5

or whatever

LF



Reply With Quote
  #3  
Old   
Cass Lewart
 
Posts: n/a

Default Re: Significant places in division - 10-14-2004 , 09:52 PM



: Even I think I can answer this one.

: SET DECIMALS TO 5

: or whatever

: LF

Les,
thanks. I can't believe that using Foxpro for at least 20 years I never
run into this problem!
Cass

--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Cass Lewart Voice (732) 264-9541 Fax (630) 566-0349/_/
_/ e-mail: rlewart (AT) monmouth (DOT) com _/_/_/_/_/_/_/_/_/_/_/_/_/
_/ N 40 deg 23' 41.9", W 74 deg 11' 29.7"/_/_/_/_/_/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.