+ 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

10th Sep 2022, 7:29 AM
Dipankar Shaw
Dipankar Shaw - avatar
5 odpowiedzi
+ 2
In the money math world will be used round function for an amount.
10th Sep 2022, 8:43 AM
JaScript
JaScript - avatar
+ 1
JaScript having the same problem with round()
11th Sep 2022, 5:19 AM
Dipankar Shaw
Dipankar Shaw - avatar
+ 1
11th Sep 2022, 10:30 AM
JaScript
JaScript - avatar
+ 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.
11th Sep 2022, 2:13 PM
JaScript
JaScript - avatar
0
JaScript what is roundf() ?
11th Sep 2022, 1:44 PM
Dipankar Shaw
Dipankar Shaw - avatar