in reply to Re^7: Math::BigFloat to native double?
in thread Math::BigFloat to native double?
This is what I get by adding up all the binary fractions for all the set bits in your hex/binary representation:
0 0.50000000000000000000000000000000000000000000000000 1 0.25000000000000000000000000000000000000000000000000 4 0.03125000000000000000000000000000000000000000000000 7 0.00390625000000000000000000000000000000000000000000 12 0.00012207031250000000000000000000000000000000000000 13 0.00006103515625000000000000000000000000000000000000 14 0.00003051757812500000000000000000000000000000000000 15 0.00001525878906250000000000000000000000000000000000 16 0.00000762939453125000000000000000000000000000000000 17 0.00000381469726562500000000000000000000000000000000 19 0.00000095367431640625000000000000000000000000000000 20 0.00000047683715820312500000000000000000000000000000 22 0.00000011920928955078125000000000000000000000000000 24 0.00000002980232238769531300000000000000000000000000 26 0.00000000745058059692382810000000000000000000000000 30 0.00000000046566128730773926000000000000000000000000 34 0.00000000002910383045673370400000000000000000000000 39 0.00000000000090949470177292824000000000000000000000 41 0.00000000000022737367544323206000000000000000000000 42 0.00000000000011368683772161603000000000000000000000 44 0.00000000000002842170943040400700000000000000000000 48 0.00000000000000177635683940025050000000000000000000 49 0.00000000000000088817841970012523000000000000000000 54 0.00000000000000002775557561562891400000000000000000 58 0.00000000000000000173472347597680710000000000000000 59 0.00000000000000000086736173798840355000000000000000 61 0.00000000000000000021684043449710089000000000000000 64 0.00000000000000000002710505431213761100000000000000 65 0.00000000000000000001355252715606880500000000000000 69 0.00000000000000000000084703294725430034000000000000 72 0.00000000000000000000010587911840678754000000000000 73 0.00000000000000000000005293955920339377100000000000 77 0.00000000000000000000000330872245021211070000000000 78 0.00000000000000000000000165436122510605530000000000 81 0.00000000000000000000000020679515313825692000000000 82 0.00000000000000000000000010339757656912846000000000 86 0.00000000000000000000000000646234853557052870000000 88 0.00000000000000000000000000161558713389263220000000 92 0.00000000000000000000000000010097419586828951000000 94 0.00000000000000000000000000002524354896707237800000 95 0.00000000000000000000000000001262177448353618900000 96 0.00000000000000000000000000000631088724176809440000 104 0.00000000000000000000000000000002465190328815661900 105 0.00000000000000000000000000000001232595164407830900 106 0.00000000000000000000000000000000616297582203915470 0.78539816439944831161566131939647068003696135548270 <<< 001124476675678989811791619118619999856552441020 00 0 0 01 0 0.78539816439944831161566131939647068003696135548270 * 4 = 3.14159265759779324646264527758588272014784542193080 3.1415926535897932384626433832795 <<<<<<<<<<<<<<<<<<<< (my) origin +al input. ^ ^^ ^^ ^^^^^^^^
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Math::BigFloat to native double?
by syphilis (Archbishop) on Jul 13, 2015 at 12:14 UTC |