Home
last modified time | relevance | path

Searched refs:unflipZeroes (Results 1 – 2 of 2) sorted by relevance

/packages/apps/ExactCalculator/tests/src/com/android/calculator2/
DEvaluatorTest.java32 check(Evaluator.unflipZeroes("9.99", 2, "9.998", 3).equals("9.998"), "test 1"); in testUnflipZeroes()
33 check(Evaluator.unflipZeroes("9.99", 2, "10.0000", 4).equals("9.9999"), "test 2"); in testUnflipZeroes()
34 check(Evaluator.unflipZeroes("0.99", 2, "1.00000", 5).equals("0.99999"), "test 3"); in testUnflipZeroes()
35 check(Evaluator.unflipZeroes("0.99", 2, "1.00", 2).equals("0.99"), "test 4"); in testUnflipZeroes()
36 check(Evaluator.unflipZeroes("10.00", 2, "9.9999", 4).equals("9.9999"), "test 5"); in testUnflipZeroes()
37 check(Evaluator.unflipZeroes("-10.00", 2, "-9.9999", 4).equals("-9.9999"), "test 6"); in testUnflipZeroes()
38 check(Evaluator.unflipZeroes("-0.99", 2, "-1.00000000000000", 14) in testUnflipZeroes()
40 check(Evaluator.unflipZeroes("12349.99", 2, "12350.00000", 5).equals("12349.99999"), in testUnflipZeroes()
42 check(Evaluator.unflipZeroes("123.4999", 4, "123.5000000", 7).equals("123.4999999"), in testUnflipZeroes()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DEvaluator.java450 static String unflipZeroes(String oldDigs, int oldPrecOffset, String newDigs, in unflipZeroes() method in Evaluator
515 mResultString = unflipZeroes(mResultString, mResultStringOffset, in onPostExecute()