Ad
  • Default User Avatar
        test.assert_equals(to_scientific(56789), "5.678e4")
        test.assert_equals(to_scientific(50789), "5.078e4")
        test.assert_equals(to_scientific(50089), "5.008e4")
        test.assert_equals(to_scientific(50009), "5.0e4")
        test.assert_equals(to_scientific(56709), "5.67e4")
        test.assert_equals(to_scientific(56009), "5.6e4")
        
        test.assert_equals(to_scientific(456789), "4.567e5")
        test.assert_equals(to_scientific(406789), "4.067e5")
        test.assert_equals(to_scientific(400789), "4.007e5")
        test.assert_equals(to_scientific(400089), "4.0e5")
        test.assert_equals(to_scientific(400009), "4.0e5")
        test.assert_equals(to_scientific(456709), "4.567e5")
        test.assert_equals(to_scientific(456009), "4.56e5")
        test.assert_equals(to_scientific(450009), "4.5e5")