diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
commit | 3e45412327a2654a77944249962b3652e6142299 (patch) | |
tree | bc3bf69452afa055423cbe0c5cfa8ca357df6ccf /src/pkg/strconv/decimal.go | |
parent | c533680039762cacbc37db8dc7eed074c3e497be (diff) | |
download | golang-upstream/2011.01.12.tar.gz |
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'src/pkg/strconv/decimal.go')
-rw-r--r-- | src/pkg/strconv/decimal.go | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/pkg/strconv/decimal.go b/src/pkg/strconv/decimal.go index 3be61d7bc..3a5cf1ba6 100644 --- a/src/pkg/strconv/decimal.go +++ b/src/pkg/strconv/decimal.go @@ -187,34 +187,34 @@ var leftcheats = []leftCheat{ int(log2*NR+1), $0, 2**NR) }' */ - leftCheat{0, ""}, - leftCheat{1, "5"}, // * 2 - leftCheat{1, "25"}, // * 4 - leftCheat{1, "125"}, // * 8 - leftCheat{2, "625"}, // * 16 - leftCheat{2, "3125"}, // * 32 - leftCheat{2, "15625"}, // * 64 - leftCheat{3, "78125"}, // * 128 - leftCheat{3, "390625"}, // * 256 - leftCheat{3, "1953125"}, // * 512 - leftCheat{4, "9765625"}, // * 1024 - leftCheat{4, "48828125"}, // * 2048 - leftCheat{4, "244140625"}, // * 4096 - leftCheat{4, "1220703125"}, // * 8192 - leftCheat{5, "6103515625"}, // * 16384 - leftCheat{5, "30517578125"}, // * 32768 - leftCheat{5, "152587890625"}, // * 65536 - leftCheat{6, "762939453125"}, // * 131072 - leftCheat{6, "3814697265625"}, // * 262144 - leftCheat{6, "19073486328125"}, // * 524288 - leftCheat{7, "95367431640625"}, // * 1048576 - leftCheat{7, "476837158203125"}, // * 2097152 - leftCheat{7, "2384185791015625"}, // * 4194304 - leftCheat{7, "11920928955078125"}, // * 8388608 - leftCheat{8, "59604644775390625"}, // * 16777216 - leftCheat{8, "298023223876953125"}, // * 33554432 - leftCheat{8, "1490116119384765625"}, // * 67108864 - leftCheat{9, "7450580596923828125"}, // * 134217728 + {0, ""}, + {1, "5"}, // * 2 + {1, "25"}, // * 4 + {1, "125"}, // * 8 + {2, "625"}, // * 16 + {2, "3125"}, // * 32 + {2, "15625"}, // * 64 + {3, "78125"}, // * 128 + {3, "390625"}, // * 256 + {3, "1953125"}, // * 512 + {4, "9765625"}, // * 1024 + {4, "48828125"}, // * 2048 + {4, "244140625"}, // * 4096 + {4, "1220703125"}, // * 8192 + {5, "6103515625"}, // * 16384 + {5, "30517578125"}, // * 32768 + {5, "152587890625"}, // * 65536 + {6, "762939453125"}, // * 131072 + {6, "3814697265625"}, // * 262144 + {6, "19073486328125"}, // * 524288 + {7, "95367431640625"}, // * 1048576 + {7, "476837158203125"}, // * 2097152 + {7, "2384185791015625"}, // * 4194304 + {7, "11920928955078125"}, // * 8388608 + {8, "59604644775390625"}, // * 16777216 + {8, "298023223876953125"}, // * 33554432 + {8, "1490116119384765625"}, // * 67108864 + {9, "7450580596923828125"}, // * 134217728 } // Is the leading prefix of b lexicographically less than s? |