unit conversion in python as python built-in conversions -


i'm new python. how can convert unit in python? mean not using conversion function this. built-in syntax in python, complex numbers works. e.g., when typed 1mm in python command line, , expect result 0.001

>>> 1mm 0.001 #just built-in complex numbers or scintific expressions >>> 1j 1j >>> 1e3 1000 

i totally have no idea, knows how complex number or scintific expressions work in python? or idea on how it.

thanks,

how bout

mm = 0.001  1*mm 

not sure if asking ... if have ever messed report lab simillar stuff. (although use convert pixels actual border sizes , not)

eg:

 inch = dpi*some_thing  margin = 2*inch 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -