Discussion:
Decimal to Character
(too old to reply)
w***@hotmail.com
2005-11-30 21:06:02 UTC
Permalink
How can I convert a decimal (.0290) to a character without loosing the
decimal and the numbers to the right of the number? Str() truncates the
decimal and all numbers to the right of the decimal.

Thanks
Fred Taylor
2005-12-01 02:09:54 UTC
Permalink
cVal = TRANSFORM(0.0290)
--
Fred
Microsoft Visual FoxPro MVP
Post by w***@hotmail.com
How can I convert a decimal (.0290) to a character without loosing the
decimal and the numbers to the right of the number? Str() truncates the
decimal and all numbers to the right of the decimal.
Thanks
Cindy Winegarden
2005-12-04 19:31:03 UTC
Permalink
Hi,

Have you looked at the optional arguments for the Str() function?

STR(nExpression [, nLength [, nDecimalPlaces]])
--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
***@msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden
Post by w***@hotmail.com
How can I convert a decimal (.0290) to a character without loosing the
decimal and the numbers to the right of the number? Str() truncates the
decimal and all numbers to the right of the decimal.
Thanks
Loading...