src/types.rs

branch
dev
changeset 195
93e003c1f0ef
parent 150
c4e394a9c84c
--- a/src/types.rs	Thu Jan 15 16:12:47 2026 -0500
+++ b/src/types.rs	Tue Feb 24 09:44:53 2026 -0500
@@ -97,7 +97,7 @@
 impl<U: Num + num::Signed + std::ops::Neg<Output = Self>> SignedNum for U {}
 
 /// Trait for floating point numbers
-pub trait Float: SignedNum + num::Float /*+ From<Self::CompatibleSize>*/ {
+pub trait Float: SignedNum + std::fmt::LowerExp + num::Float /*+ From<Self::CompatibleSize>*/ {
     // An unsigned integer that can be used for indexing operations and
     // converted to F without loss.
     //type CompatibleSize : CompatibleUnsigned<Self>;

mercurial