Crystal 10, Sql 2005
I have float value I need changed to text. Here's the catch; the text that is displayed cannot have any extra trailing zeros. Example:
float = .0023 text has to equal .002
float = .002 text has to equal .002
float = .01 text has to equal .01
float = .1 text has to equal .1
float = 1.1 text has to equal .1
float = 1 text has to equal 1
and so on....
If I try to display the float on my report with out converting it to a string I will have the trailing zeros, eg. .002 will be .0020. But, I really need it as a string, because based on another value on the report, I have to display a string in this column.
I can convert to a string but i get the same problem, either the value is cut off or it has a trailing zero. I cant do a ToText({table.float},4) because I'll still get trailing zeros. Since the value is a float I could have up to 7 decimal places. Does anybody have any suggestions? Thanks in advance
I have float value I need changed to text. Here's the catch; the text that is displayed cannot have any extra trailing zeros. Example:
float = .0023 text has to equal .002
float = .002 text has to equal .002
float = .01 text has to equal .01
float = .1 text has to equal .1
float = 1.1 text has to equal .1
float = 1 text has to equal 1
and so on....
If I try to display the float on my report with out converting it to a string I will have the trailing zeros, eg. .002 will be .0020. But, I really need it as a string, because based on another value on the report, I have to display a string in this column.
I can convert to a string but i get the same problem, either the value is cut off or it has a trailing zero. I cant do a ToText({table.float},4) because I'll still get trailing zeros. Since the value is a float I could have up to 7 decimal places. Does anybody have any suggestions? Thanks in advance