But this is not a bug. Casting to integer always cut of the decimal places. If you want rounding then casting is the wrong message. In javascript there should rounding available.
But this is not a bug. Casting to integer always cut of the decimal places. If you want rounding then casting is the wrong message. In javascript there should rounding available.