examples/decBin.nila in nilac-0.0.4.3.9.2 vs examples/decBin.nila in nilac-0.0.4.3.9.3
- old
+ new
@@ -43,11 +43,11 @@
(decimalplaces.to_s.length-2).times do
calc = decimalplaces * 2
- decans = calc.to_s[0];
+ decans = calc.to_s[0]
decimalplaces = parseFloat("0.#{calc.to_s[2..last]}")
storage << Number(decans)
@@ -55,11 +55,11 @@
return storage
end
-process.stdin.resume();
-process.stdin.setEncoding('utf8');
+process.stdin.resume()
+process.stdin.setEncoding('utf8')
process.stdin.on 'data', do |chunk|
print "Answer: #{decimalToBinary(chunk).join("")} \n\n"
end