Home > Back-end >  This function should be how to write?
This function should be how to write?

Time:10-10

Write a function float fun (float x, int m), its function is to: keep the floating-point number x m decimal places (m is not more than 6), a rounded, m + 1, for example, the input 123.456, keep two decimal places should output 123.46 (or 123.459999), write the main function, input and output in the main function,
  • Related