SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions

Functions

template<domain D :shared3p >
D float32 floor (D float32 value)
 
template<domain D :shared3p >
D float64 floor (D float64 value)
 

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/2]

template<domain D :shared3p >
D float32 floor ( D float32  arr)
Parameters
value- input scalar of supported type
arr- input vector of supported type

◆ floor() [2/2]

template<domain D :shared3p >
D float64 floor ( D float64  value)