Question and answer is powered by AnsPress.io
When I tried to multiply an integer value by a decimal, get the results as follows. 1.00 * 5 = 0 . I want the output as 5.00
get floating point value after multiple values. So, you need to use JavaScript parseFloat() method in your PHP application. For Example:
<script>
var value1 = $(‘#field1’).val();
var value2 = $(‘#field2’).val();
var multiply_val = parseFloat(value1) * parseFloat(value2);
</script>