# Gavin Andresen # 2011-04-12 13:46:05 # https://bitcointalk.org/index.php?topic=5721.msg84392#msg84392 @s{quotedtext} @s{quotedtext} @p{brk} That sounds overly complicated. Does your ruby/json implementation have double-precision (64-bit) floats? If it does, just multiply by 1.0e8 and rounding to the nearest integer. @p{par} Quick way to tell if your ruby implementation does 64-bit floats: see what you get converting 21000000.00000001*1e8 to an integer.