Last post Mar 12, 2019 07:34 AM by Ackerly Xu
Mar 12, 2019 05:11 AM|scala_1988|LINK
I have to store value between 0-100. Which data type will be optimized int or int16 or int 32 or int64? Now I have to store the value from this operation
(Convert.ToInt32(grnd_ttl) * 100.00) / 800.00;
The value of the above operation should have only two decimal places eg. 45.28 , 78.96, 88.26... what type of variable should I use to store
double or decimal or float?
Mar 12, 2019 07:34 AM|Ackerly Xu|LINK
Generally speaking , int64's number range is wider than int32 and int32's number ranger is wider than int.
Decimal has higher precision than double and double has higher precision than float.
Please refer to