[email protected] wrote:
>     1 inch=2.5cmso 1 inch=25mm
> use this 

If you use 25 rather than 25.4 you are introducing a rounding error.


> Jim Dougherty wrote:
> 
> float inches;
> float millimeters;
> 
> millimeters = inches * 25.4;


> [EMAIL PROTECTED] com wrote:
> 
>  > Hi Everyone,
>  > Can anyone help me with the logic for the below
>  > program.... I need to convert a value (any integer, floating) from inches 
> to
>  > millimeter in C.  Please help me to derive the logic for the program.
>  > Regards,
>  > Prakash.
> 

Reply via email to