use (float | 0) instead of parseInt