Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-11103

Add banker's rounding BROUND UDF

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0, 2.0.0
    • UDF
    • None

    Description

      Banker's rounding: the value is rounded to the nearest even number. Also known as "Gaussian rounding", and, in German, "mathematische Rundung".

      Example

                        2 digits                2 digits
      Unrounded    "Standard" rounding    "Gaussian" rounding
        54.1754      54.18                  54.18
       343.2050     343.21                 343.20
      +106.2038    +106.20                +106.20 
      =========    =======                =======
       503.5842     503.59                 503.58
      

      Attachments

        1. HIVE-11103.1.patch
          34 kB
          Alexander Pivovarov
        2. HIVE-11103.1.patch
          34 kB
          Alexander Pivovarov
        3. HIVE-11103.2.patch
          38 kB
          Alexander Pivovarov
        4. HIVE-11103.4.patch
          43 kB
          Alexander Pivovarov

        Activity

          People

            apivovarov Alexander Pivovarov
            apivovarov Alexander Pivovarov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: