Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format Display of Formula 1

Status
Not open for further replies.
Mar 19, 2003
57
US
In Crystal Reports 9, how do I change the format of my formula to display a integer value to 20 decimal places?
 
You don't, in fact you shouldn't expect a PC to handle 20 digits of decimal precision math correctly.

You can fake it by setting the precision to 10, and then appending on 10 additional digits of zeroes if you'd like using a text field or by converting it to text, as in:

totext({table.field})+"0000000000"

-k
 
You can use the ToText function and specify the number of places to carry the decimal to without having to concatenate a string of zeros.

totext({table.field},10)

To decimal places is the max you can go out as any more will be too large.

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top