| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
PlutusTx.Sqrt
Documentation
Integer square-root representation, discarding imaginary integers.
Constructors
| Imaginary | The number was negative, so we don't even attempt to compute it; just note that the result would be imaginary.  | 
| Exactly Integer | An exact integer result. The   | 
| Approximately Integer | The Integer component (i.e. the floor) of a non-integral result. The 'rsqrt 2' is 'Approximately 1'.  | 
Instances
| Eq Sqrt Source # | |
| Show Sqrt Source # | |
| UnsafeFromData Sqrt Source # | |
Defined in PlutusTx.Sqrt Methods  | |
| FromData Sqrt Source # | |
Defined in PlutusTx.Sqrt Methods fromBuiltinData :: BuiltinData -> Maybe Sqrt Source #  | |
| ToData Sqrt Source # | |
Defined in PlutusTx.Sqrt Methods toBuiltinData :: Sqrt -> BuiltinData Source #  | |
| Lift DefaultUni Sqrt Source # | |
| Typeable DefaultUni Sqrt Source # | |