Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Currency vs numberic
Message
From
16/08/1999 23:37:15
 
 
To
16/08/1999 10:16:15
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00254029
Message ID:
00254398
Views:
14
>Hi,
>
>what is the advantage /reason for using a currency data type vs just using a numeric in a table field?
>
>thanks!

In addition to what the others have said, a Currency field can store a much larger range of values than a Numeric of equivalent size: +/- 922337203685477.5807 (with 4 decimal accuracy), according to the Help file. So, allocate 8 bytes for a value and forget about ever overflowing!

Simply put, it's more space-efficient, just like DateTime compared to Date.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform