Add Scalar::round

This commit is contained in:
Hanno Braun 2022-02-19 11:33:05 +01:00
parent d35a25a236
commit 3482a180e7

View File

@ -87,6 +87,11 @@ impl Scalar {
self.0.ceil().into()
}
/// Round the scalar
pub fn round(self) -> Self {
self.0.round().into()
}
/// Compute the cosine
pub fn cos(self) -> Self {
self.0.cos().into()