Instead of having 19234.84797 as output, the output is 19234.847656 or some other longer number such as 100000.000000 or something else. I really wonder how this is possible. Please help me. Thanks.
Since you didn't specify the precision option for your number, you get the default number of decimal places, if you want fewer you need to add the width and precision specifiers to the printf() specifier.