T
- public interface Cheating<T>
Currently, this interface provides conversion methods from/to double. This is required for the current implementation of base conversions. The general plan for the future is to also base the base conversions fully on the field structure, therefore, these two methods are marked as deprecated, to avoid that clients start rely on them and abuse them.
Modifier and Type | Method and Description |
---|---|
T |
fromDouble(double value)
Has to return a field element, constructed from the given double value.
|
double |
toDouble(T value)
Has to convert the given field element to a (unique) double value.
|
T fromDouble(double value)
value
- the double value from which to construct the field element.double toDouble(T value)
value
- field element to convert