+ 1
PAINT COST - CODE COACH
Can any premium user review this code and told me why it's failing in test 5 https://code.sololearn.com/cT7P6i69NrLC/?ref=app
5 Respostas
+ 2
In the money math world will be used round function for an amount.
+ 1
JaScript having the same problem with round()
+ 1
Dipankar Shaw you can use this example. That works:
https://code.sololearn.com/c6JDoAx34l0j/?ref=app
+ 1
Dipankar Shaw because C++ allows overloading, you can call overloads of round that take and return float and long double values. In a C program, unless you're using the <tgmath.h> macro to call this function, round always takes and returns a double.
0
JaScript what is roundf() ?