Skip to content

DUV-4103 Adding custom round with Up and down args - #59

Merged
leocostaba merged 2 commits into
oxeanbits:masterfrom
RevolverOcelotIII:adding-custom-round-up-down
Sep 10, 2026
Merged

leocostaba merged 2 commits into
oxeanbits:masterfrom
RevolverOcelotIII:adding-custom-round-up-down

Conversation

@RevolverOcelotIII

Copy link
Copy Markdown
Contributor

Description ✍️

This PR aims to create a custom override of the round function that allows it to receive an additional parameter, such as round(0.1, "up") and round(0.1, "down"), the first one would return 1, and the second one would return 0, the regular round with a single parameter keeps the regular behavior of mathematically correct round (eg.: 0.5~=1, 0.4~=0).

Ticket 🎫

https://app.clickup.com/t/9004018935/DUV-4103

@leocostaba
leocostaba merged commit ec64e60 into oxeanbits:master Sep 10, 2026
1 check passed
leocostaba pushed a commit to oxeanbits/parsec that referenced this pull request Sep 10, 2026
# Description ✍️

This PR aims to add new tests for the custom round functionallity
available on oxeanbits/equations-parser#59 as
well as updating the version of the `equations-parser` folder to it's
newer version on the `equations-parser` repository.

# Overview 🔍

N/A


# Checks ☑️

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants