Answers for "float round to 2 precision"

24

javascript round decimal 2 digits

var numb = 123.23454;
numb = numb.toFixed(2);
Posted by: Guest on February-26-2020
1

how print fload wiht 2 decimal in c++

#include <iostream>
#include <cstdio>
using namespace std;

int main() 
{
    // This code helps you to print a number with desired decimal
    double Number=10.3454;
    printf("%.3lf",Number);

    return 0;
}
Posted by: Guest on June-07-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language