1
float amount = 0.01;
var result = (int)(amount * 100);

Why the result is 0, it should be 1.

Ricky Zhou
  • 99
  • 8

0 Answers0