mirror of
https://github.com/DanilaFe/abacus
synced 2026-01-26 08:35:20 +00:00
Implement sin function and helper functions such as getSmallAngle and floor.
This commit is contained in:
@@ -100,6 +100,11 @@ public class PreciseNumber implements NumberInterface {
|
||||
return (int) Math.ceil(value.doubleValue());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int floor() {
|
||||
return (int) Math.floor(value.doubleValue());
|
||||
}
|
||||
|
||||
@Override
|
||||
public NumberInterface negate() {
|
||||
return new PreciseNumber(value.negate());
|
||||
|
||||
Reference in New Issue
Block a user