3 Replies Latest reply on May 16, 2013 12:18 PM by Joshua Milligan

    When I use this calculation, I get really precise results.  str(round([MPGRangeStart],1))+"-"+str([MPGRangeEnd])

    Chad Kovac

      MPGRangeStart and End are calculated as well and they are simply:

      MPGRangeStart: round([CalculatedMPG]*10,0)/10

      MPGRangeEnd: MPGRangeStart+.1

       

      then I try this:

      str(round([MPGRangeStart],1))+"-"+str([MPGRangeEnd])

       

      I expect this:

      4.1-4.2

      4.2-4.3

      etc.,

      I get this:

      4.099999999999999999999-4.1999999999999999999

      4.2-4.2999999999999999999999999999

       

       

      How can I just get what I expect?

      I have a MPG:                    I want it to display as:  

      4.65                                   4.6-4.7

      4.33                                   4.3-4.4

      2.521                                 2.5-2.6