|
|
вернуться в форумHow can I show numbers after dot? Which function I have to use? Послано Lareon 3 янв 2009 15:19 Re: How can I show numbers after dot? Which function I have to use? Послано zadmin 3 янв 2009 16:06 printf("%0.6f", number) in c/c++ or writeln(number:0:6) in pascal p.s. checkout the other online training/judge website www.z-trening.com, it has more feedback when you submit a problem Re: How can I show numbers after dot? Which function I have to use? Послано ASK 14 мар 2014 00:07 Note that scanf uses "%lf" to read double, but printf must use "%f". It looks like printf with "%lf" does not work on Windows, although it works on Linux. |
|
|