Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index on Ascending/Descending field wise
Message
From
04/04/2000 22:25:35
 
 
To
04/04/2000 18:37:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00354206
Message ID:
00355456
Views:
18
Mike,

Correction of typo...

Let's see if we can wrap this up.

>>A smaller number *must* be used.
>
>Then the field can be larger than the subtracted number, and you've got a bad order. So the field would have to be shortened.

His dueamount was 15,2 so we could make this work by subtracting from 999999999999.99 with no field shortening needed (I have tested it) :-).
? str(999999999999.99 - 999999999999.99,16,2)  = "            0.00"
? str(999999999999.99 - 2.48,16,2)             = " 999999999997.51"
? str(999999999999.99 - 2.47,16,2)             = " 999999999997.52"
? str(999999999999.99 - -2.48,16,2)            = <b>"1000000000002.47"</b>
? str(999999999999.99 - -999999999999.99,16,2) = "1999999999999.98"
See any problems with this, other than the conceptual "why" that MikeY raised?
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform