Old Russian measure of length: Difference between revisions

Content added Content deleted
m (Added command before result. Corrected a typo.)
Line 1,553: Line 1,553:


if paramCount() != 2:
if paramCount() != 2:
raise newException(ValueError, "deed two arguments: number then units.")
raise newException(ValueError, "need two arguments: number then units.")


let value = try: parseFloat(paramStr(1))
let value = try: parseFloat(paramStr(1))
Line 1,569: Line 1,569:


{{out}}
{{out}}
Output for command: ./convert 1 meter
<pre>1.0 meter to:
<pre>1.0 meter to:
arshin: 1.40607
arshin: 1.40607