This is a migrated thread and some comments may be shown as answers.

Decimal Numeric Constant

1 Answer 80 Views
ExpressionEditor
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 19 Mar 2012, 07:04 PM
When using the If function we were unable to have a results of differing types.  For example
IF(Expression, FieldOfTypeDecimal, 0) will not work

The ExpressionEditor does not understand numeric constants
IF(Expression, FieldOfTypeDecimal, 0M) will not work.

Is there a way to work around this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 21 Mar 2012, 06:27 PM
Hello,

As a Decimal constant you could use '0.0'. In case of Double constant, you could use the exponential value: 0.0E+2. 
 

Regards,
Didie
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ExpressionEditor
Asked by
Jason
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or