Hello,
I have the following formula in Crystal v8.5:
if {glsaprpt.base_amt}< 0 then 0
else ToNumber(right(ToText({glsaprpt.base_amt},0,""),len(ToText({glsaprpt.base_amt}))-1))
The field {glsaprpt.base_amt} has the following value $23,837,877,855.00
I am trying to remove the "," & ".00" from the field {glsaprpt.base_amt} I am able to get rid of the "$" thanks to "mbarron (TechnicalUser)" but even though I have followed the thread767-731523 I am unable to remove the "," & ".00" from the value 23,837,877,855.00.
The value I'm trying to end up with from the {glsaprpt.base_amt} field is 23837877855
I also tried to put the ,0,"" at the end of my formula but that was no good either:
if {glsaprpt.base_amt}< 0 then 0
else ToNumber(right(ToText({glsaprpt.base_amt}),len(ToText({glsaprpt.base_amt},0,""))-1))
Thanks for looking
I have the following formula in Crystal v8.5:
if {glsaprpt.base_amt}< 0 then 0
else ToNumber(right(ToText({glsaprpt.base_amt},0,""),len(ToText({glsaprpt.base_amt}))-1))
The field {glsaprpt.base_amt} has the following value $23,837,877,855.00
I am trying to remove the "," & ".00" from the field {glsaprpt.base_amt} I am able to get rid of the "$" thanks to "mbarron (TechnicalUser)" but even though I have followed the thread767-731523 I am unable to remove the "," & ".00" from the value 23,837,877,855.00.
The value I'm trying to end up with from the {glsaprpt.base_amt} field is 23837877855
I also tried to put the ,0,"" at the end of my formula but that was no good either:
if {glsaprpt.base_amt}< 0 then 0
else ToNumber(right(ToText({glsaprpt.base_amt}),len(ToText({glsaprpt.base_amt},0,""))-1))
Thanks for looking