Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how print fload wiht 3 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;
}
 
PREVIOUS NEXT
Tagged: #print #fload #wiht #decimal
ADD COMMENT
Topic
Name
3+4 =