... | ... | @@ -4,4 +4,5 @@ Unify is written for converting from one unit to another. Let say you have a str |
|
|
`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 |
|
|
and now your length is in mm, whatever the unit in which it was given in the first place.
|
|
|
> Note that the output returned by unify is still a string, so if you need to do a calculation with `length` in the above example, you will need to call `float(length)` first! |
|
|
\ No newline at end of file |