SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions

Functions

template<domain D :shared3p >
D float32 floor (D float32 value)
 
template<domain D :shared3p >
D float64 floor (D float64 value)
 
template<domain D :shared3p >
D float32 floor (D float32[[1]] arr)
 
template<domain D :shared3p >
D float64 floor (D float64[[1]] arr)
 

Detailed Description

Functions for rounding a value downwards.

Note
D - shared3p protection domain
Supported types - float32 float64
Returns
returns the downwards rounded value of the input scalar/vector
Leakage
None

Function Documentation

◆ floor() [1/4]

D float32 floor ( D float32  value)
Parameters
value- input scalar of supported type

◆ floor() [2/4]

D float32 floor ( D float32[[1]]  arr)
Parameters
arr- input vector of supported type

◆ floor() [3/4]

D float64 floor ( D float64  value)

◆ floor() [4/4]

D float64 floor ( D float64[[1]]  arr)