mirror of
https://github.com/DanilaFe/abacus
synced 2026-01-26 16:45:21 +00:00
Implement sin function and helper functions such as getSmallAngle and floor.
This commit is contained in:
@@ -98,6 +98,11 @@ public class NaiveNumber implements NumberInterface {
|
||||
return (int) Math.ceil(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int floor() {
|
||||
return (int) Math.floor(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NumberInterface promoteTo(Class<? extends NumberInterface> toClass) {
|
||||
if (toClass == this.getClass()) return this;
|
||||
|
||||
Reference in New Issue
Block a user