|
|
If you want to use it inside a python script you have to import it. Let say you import it this way:<br>
|
|
|
`from unify import unify` |
|
|
\ No newline at end of file |
|
|
`from unify import unify`<br>
|
|
|
Unify is written for converting from one unit to another. Let say you have a string like this:<br>
|
|
|
`length='15.0168*cm'`<br>
|
|
|
Now if you need this length to be given in mm you do:<br>
|
|
|
`length=unify(length+'/mm')`<br>
|
|
|
and now your length is in mm, whatever the unit in which it was given in the first place. |
|
|
\ No newline at end of file |