![]() |
![]() |
![]() |
![]() |
![]() |
|
You can, if you want, display a floating-point number without the
fractional part by converting it to an integer using C's casting
mechanism. All you need to do is to preface the number with (int), as
in the following illustration:
printf ("The result is as follows:
Food 4700