Anonymous user
Imaginary base numbers: Difference between revisions
m
Cleanup sections.
(Added a Ruby implementation.) |
m (Cleanup sections.) |
||
Line 3,368:
=={{header|Ruby}}==
{{works with|Ruby|2.3}}
<lang ruby># Convert a quarter-imaginary base value (as a string) into a base 10 Gaussian integer.
Line 3,407:
return value
end</lang>
<lang ruby># Extend class Integer with a string conveter.
|