locked
storing data in variables RRS feed

  • Question

  • User364607740 posted

    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?

    Tuesday, March 12, 2019 5:11 AM

All replies