Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Round half even and odd #34

Open
josecelano opened this issue Apr 11, 2015 · 4 comments
Open

Round half even and odd #34

josecelano opened this issue Apr 11, 2015 · 4 comments

Comments

@josecelano
Copy link
Contributor

It would be nice to have the same round modes than round() PHP function:

http://php.net/manual/en/function.round.php

@castarco
Copy link
Contributor

Buenas @josecelano ,

yep, it's an interesting idea :) . I'm working on a big refactoring of this library (currently I'm on the design phase) and I haven't many time for this feature, but if you know how to implement it, I invite you to make a pull request.

Thanks for the idea.

@josecelano
Copy link
Contributor Author

I do not know how to do it (I have not thougth about it). I am using this library to implement a BigMoney class:
moneyphp/money#7
I am going to finish my implementation and I will try to find a solution.

@josecelano
Copy link
Contributor Author

I have found this library:
https://github.com/keiosweb/moneyright/blob/master/src/Math.php

@castarco
Copy link
Contributor

@josecelano thx, I'll take a look.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants