Forcing Crystal Reports formula field to be float

  • Thread starter Thread starter Claire
  • Start date Start date
C

Claire

I've created a formula field called "BaseField" in a crystal report in VS
2003. At run time, I dynamically change the formula depending which field
the user selects to view

for example

FieldName = "{@DistanceKm}";
rpt.DataDefinition.FormulaFields["BaseField"].Text = FieldName;

At run time, even though I've set decimal places to 2 in the property editor
for BaseField, this field is showing the integer truncated value with ".00"
tacked onto the end of the string
How do I force this field to show itself as a float please?

thanks
 
Back
Top