Skip to content

Document decimal modulo operator #2423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Totktonada opened this issue Nov 9, 2021 · 1 comment
Open

Document decimal modulo operator #2423

Totktonada opened this issue Nov 9, 2021 · 1 comment
Labels
feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality

Comments

@Totktonada
Copy link
Member

Totktonada commented Nov 9, 2021

Product: Tarantool
Since: 2.3.1
Audience/target: developers
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/decimal/
SME: @ Totktonada

Details

There is now a modulo operator for decimal numbers:

a = decimal.new(172.51)
a % 1 
---
- '0.51'
...
a % 0.3 
---
- '0.01'
...
a % 13.27
---
- '0.00'
...
a % 173 
---
- '172.51'
...
a % 72
---
- '28.51'
...
720 % a 
---
- '29.96'
...

Requested by @sergepetrenko in tarantool/tarantool@8ea7106

@Totktonada
Copy link
Member Author

I would highlight that % support was declared within as result of #819. It seems, by mistake: it was added only in 2.3.1.

Please, proceed with this issue as it looks more apporiate for you: either just close or add some version / issue / release notes pointers.

@patiencedaur patiencedaur added this to the Estimate [@patiencedaur] milestone Nov 16, 2021
@patiencedaur patiencedaur added feature A new functionality server [area] Task relates to Tarantool's server (core) functionality labels Nov 16, 2021
@patiencedaur patiencedaur changed the title Document decimal modulo operator [3pt] Document decimal modulo operator Nov 16, 2021
@patiencedaur patiencedaur changed the title [3pt] Document decimal modulo operator [2pt] Document decimal modulo operator Nov 16, 2021
@patiencedaur patiencedaur added the reference [location] Tarantool manual, Reference part label Nov 16, 2021
@patiencedaur patiencedaur removed this from the Estimate [@patiencedaur] milestone Nov 23, 2021
@veod32 veod32 changed the title [2pt] Document decimal modulo operator Document decimal modulo operator Mar 6, 2023
@TarantoolBot TarantoolBot removed the 2sp label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

No branches or pull requests

3 participants