Skip to content

Conversation

@ZERICO2005
Copy link
Contributor

Fixes this issue #466

ultof now correctly handle values greater than INT32_MAX. However, ti's ltof will round to nearest with ties away from zero, while ultof will round to nearest with ties to even.

I am not sure if would be best for ultof to have the same rounding as ltof

Thanks to calc84maniac for help on ultof.src

@adriweb adriweb linked an issue Mar 25, 2025 that may be closed by this pull request
@mateoconlechuga
Copy link
Member

ultof should have same rounding as ltof

@ZERICO2005
Copy link
Contributor Author

I have fixed it so it uses round to nearest with ties away from zero

@mateoconlechuga mateoconlechuga merged commit a11f44b into master Apr 5, 2025
9 checks passed
@mateoconlechuga mateoconlechuga deleted the pr/fix_ultof branch April 5, 2025 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

__ultof actually implements __ltof

4 participants