{ "string": [ { "input": "0", "output": [0, 0, 0, 0, 0, 0, 0] }, { "input": "2", "output": [2, 2, 0, 0, 0, 0, 0] }, { "input": "57", "output": [57, 57, 0, 0, 0, 0, 0] }, { "input": "987", "output": [987, 987, 0, 0, 0, 0, 0] }, { "input": "1234567", "output": [1234567, 1234567, 0, 0, 0, 0, 0] }, { "input": "-1000000", "output": [1000000, 1000000, 0, 0, 0, 0, 0] }, { "input": "0.23", "output": [0.23, 0, 2, 2, 23, 23, 0] }, { "input": "0.230", "output": [0.23, 0, 3, 2, 230, 23, 0] }, { "input": "23.00", "output": [23, 23, 2, 0, 0, 0, 0] }, { "input": "0.0203000", "output": [0.0203, 0, 7, 4, 203000, 203, 0] }, { "input": "123.45", "output": [123.45, 123, 2, 2, 45, 45, 0] }, { "input": "-1234.567", "output": [1234.567, 1234, 3, 3, 567, 567, 0] }, { "input": "2.813829837982735", "output": [2.813829837982735, 2, 15, 15, 813829837982735, 813829837982735, 0] }, { "input": "2.0", "output": [2, 2, 1, 0, 0, 0, 0] }, { "input": "2e3", "output": [2, 2, 0, 0, 0, 0, 3] }, { "input": "2.0e12", "output": [2, 2, 1, 0, 0, 0, 12] } ], "int": [ { "input": 0, "output": [0, 0, 0, 0, 0, 0, 0] }, { "input": 2, "output": [2, 2, 0, 0, 0, 0, 0] }, { "input": 57, "output": [57, 57, 0, 0, 0, 0, 0] }, { "input": 987, "output": [987, 987, 0, 0, 0, 0, 0] }, { "input": 1234567, "output": [1234567, 1234567, 0, 0, 0, 0, 0] }, { "input": -10, "output": [10, 10, 0, 0, 0, 0, 0] }, { "input": -1000000, "output": [1000000, 1000000, 0, 0, 0, 0, 0] } ], "floats": [ { "input": 0, "output": [0, 0, 0, 0, 0, 0, 0] }, { "input": 2, "output": [2, 2, 0, 0, 0, 0, 0] }, { "input": 57, "output": [57, 57, 0, 0, 0, 0, 0] }, { "input": 987, "output": [987, 987, 0, 0, 0, 0, 0] }, { "input": 1234567, "output": [1234567, 1234567, 0, 0, 0, 0, 0] }, { "input": -10, "output": [10, 10, 0, 0, 0, 0, 0] }, { "input": -1000000, "output": [1000000, 1000000, 0, 0, 0, 0, 0] } ], "from_test": [ { "input": { "from": 2500, "pow10": -2 }, "expected": { "n": 25.0, "i": 25, "v": 2, "w": 0, "f": 0, "t": 0 } }, { "input": { "from": 2500, "pow10": 0 }, "expected": { "n": 2500.0, "i": 2500, "v": 0, "w": 0, "f": 0, "t": 0 } }, { "input": { "from": -123450, "pow10": -4 }, "expected": { "n": 12.345, "i": 12, "v": 4, "w": 3, "f": 3450, "t": 345 } }, { "input": { "from": 123450, "pow10": -4 }, "expected": { "n": 12.345, "i": 12, "v": 4, "w": 3, "f": 3450, "t": 345 } }, { "input": { "from": 1, "pow10": -2 }, "expected": { "n": 0.01, "i": 0, "v": 2, "w": 2, "f": 1, "t": 1 } }, { "input": { "from": 123450, "pow10": -7 }, "expected": { "n": 0.012345, "i": 0, "v": 7, "w": 6, "f": 123450, "t": 12345 } }, { "input": { "from": 0, "pow10": 0 }, "expected": { "n": 0, "i": 0, "v": 0, "w": 0, "f": 0, "t": 0 } }, { "input": { "from": 9876543010, "pow10": 10 }, "expected": { "n": 765430100000000000, "i": 765430100000000000, "v": 0, "w": 0, "f": 0, "t": 0 } }, { "input": { "from": 9876543010, "pow10": -20 }, "expected": { "n": 0.000000000098765430, "i": 0, "v": 18, "w": 17, "f": 98765430, "t": 9876543 } } ] }