Error evaluating 1/100?

Dec 13, 2007 at 8:50 AM
if i try to evaluate 1/100 i obtain 0 not 0.01
It's a bug?

i've tryed:
IGenericExpression<decimal> eGeneric = ExpressionFactory.CreateGeneric<decimal>("1/100", context);
Dec 14, 2007 at 2:17 AM
When dividing two integers, an integer division is performed (which gives an integer result). If you change either of the numbers to a floating-point value, then a floating-point division is performed. So if you try the expression 1.0/100 or 1/100.0 then the result will be 0.01.
Dec 14, 2007 at 7:30 AM
thank you