Skip to content

Implement preimage for ceil and round functions #20197

Open

Description

@alamb

@devanshu0987 it seems like a similar technique could be used for ceil -- if you agree I will file a ticket to track

Hi @alamb , I would like to attempt this technique for the following functions

  • ceil and round
    • ceil(x) = 5 -> (4, 5]
    • round(x) = 5 -> [4.5, 5.5)
  • String Prefix Functions
    • left(s, 2) = 'AB' -> Lexicographically ['AB', 'AC')
      • Not sure if this is already implemented.
      • Not sure how complex this will be for Non latin strings etc.

Originally posted by @devanshu0987 in #20099 (comment)

Activity

  1. Samyak2 commented on Mar 8, 2026

    @Samyak2
    Contributor

    @devanshu0987 are you working on this? If not, can I take a stab at it?

  2. kumarlokesh commented on May 30, 2026

    @kumarlokesh
    Contributor

    take

  3. kumarlokesh commented on May 30, 2026

    @kumarlokesh
    Contributor

    @alamb submitted PR #22656 to address this requirement.

  4. kumarlokesh commented on Jul 24, 2026

    @kumarlokesh
    Contributor

    untake

  5. 0xPoe commented on Aug 26, 2026

    @0xPoe
    Contributor

    take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions