function to change metric measurements

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi

i requre a little bit of guidance and help to right a simple function

I have a value in milimeters which i want to pass to a function followed by
a string or value to show that i want the result converting in to

a) meters & cm - lets call it m
b) cms & mm - lets call it cm
c) mm - lets call it mm

even though i passing the mm's to the function as a number i wish it to
display it as a string

thus 1234,m i wish to return as 1 m 23.4 cm
or 1234,cm will return 123 cm 4 mms or 123.4 cms
or 1234 mm will return 1234 mms


I know this should be easy but i just cant seem how i should structure my
login..

was trying to use mod and fix .. i cant see why i can get my head round it..
as i done something similar for inches and passing the factor of the inches
.... ie 1/8th 1/16th etc to it.. to display feet inches and denominator...

please help..


.



Relevant Pages

  • Re: function to change metric measurements
    ... i requre a little bit of guidance and help to right a simple function ... by a string or value to show that i want the result converting in to ... even though i passing the mm's to the function as a number i wish it to ... I know this should be easy but i just cant seem how i should structure my ...
    (microsoft.public.excel.worksheet.functions)
  • Re: my window cant show menu. what happen for this program?
    ... "FlyR" wrote: ... but the result cant find menu. ... You're passing menu ID as a string. ...
    (microsoft.public.vc.language)
  • Re: Elementary string-parsing
    ... "return" and passing arguments). ... stack at the end; hence they appear sort of global. ... "ValueError" if the string isn't a representation of a number? ... Convert a string or a number to floating point. ...
    (comp.lang.python)
  • Re: WindowsIdentity - Invalid token; it cannot be duplicated
    ... Because the login method will be used by asp.net application and also used ... passing the token to Login method and it tries to get the Priniciple. ... IntPtr iToken, string domainName, string userName) ... and why do you have to pass tokens around?? ...
    (microsoft.public.dotnet.security)
  • Re: C String Interop
    ... char) on passing to C. ... to C as a string, ... override the conversion for cases where that wasn't intended. ... But I would oppose special-casing of argument passing ...
    (comp.lang.fortran)