Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-350

Implement round, floor, ceil

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.8.0
    • Function/UDF
    • None

    Description

      Function Definition

      INT8 round(value FLOAT8)
      INT8 floor(value FLOAT8)
      INT8 ceil(value FLOAT8)
      

      Example

      round

      select round(5.1) => 5
      select round(5.5) => 6
      select round(5.6) => 6
      select round(-5.1) => -5
      select round(-5.5) => -6
      select round(-5.6) => -6
      

      floor

      select round(5.1) => 5
      select round(5.5) => 5
      select round(-5.1) => -6
      select round(-5.6) => -6
      

      ceil

      select round(5.1) => 6
      select round(5.5) => 6
      select round(-5.1) => -5
      select round(-5.6) => -5
      

      Attachments

        1. TAJO-350.patch
          12 kB
          Hyoungjun Kim

        Activity

          People

            hjkim Hyoungjun Kim
            hjkim Hyoungjun Kim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: