ecx
Contributing and specs
Source Files
Modules
Procedures
roundn
Function
9 statements
Source File
ecx_core.f90
ecx__core
roundn
Contents
public pure elemental function roundn(x, n) result(r)
Round x to n digits.
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=dp),
intent(in)
::
x
Number to be rounded.
integer(kind=int32),
intent(in)
::
n
Number of digits.s
Return Value
real(kind=dp)
Rounded number