This commit is contained in:
2024-08-14 18:53:55 -04:00
parent b3c8938807
commit 42e04e2e0f
3 changed files with 28 additions and 15 deletions

View File

@@ -24,6 +24,9 @@ impl FiNum {
pub fn one() -> Self {
FiNum(1u64<<32)
}
pub fn is_tiny(self) -> bool {
self.0>0u64 && self.0<=1u64
}
pub fn is_zero(self) -> bool {
self.0==0
}