Page 1 of 1

Convert from double to decimal

Posted: Mon Dec 14, 2009 7:47 am
by Yasser Mohammed ElSayed
Hii,

am new to Stimulsoft Reports and i tried to convert from double to decimal and i couldnt.

any help??(especially Stimulsoft consider any floating point number is a double )

thanks,
yasser

Convert from double to decimal

Posted: Mon Dec 14, 2009 8:31 am
by Edward
Hi

Please use the following expression:
C#

Code: Select all

Decimal decimalValue = (Decimal)doubleValue
Vb.Net

Code: Select all

Dim DecimalValue as Decimal = CDec(DoubleValue)
Thank you.