Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Currency
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00280185
Message ID:
00280227
Views:
14
Hi Michelle,

The code following works beautifully in the command window:

yAmount = $14.45
nNetWt = 300
? yAmount / nNetWt ( result is 0.0482 )

The dollar sign makes no difference.

You might want to check the values with VARTYPE() to be certain that the values are the types you want. Also, look at Tools/Options/Regional and see if the currency settings there might be messed up.

HTH,
Evan

>I have an SQL SELECT that produces a Y and a N(14,0). I want to divide the Y by the N, but it keeps telling me "currency value is out of range". I even tried ROUND(amount/netwgt,2) but it doesn't like that, either.
>
>Any ideas?
>
>Thanks,
>
>Michelle
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Reply
Map
View

Click here to load this message in the networking platform