|
CC78K4 Datasheet, PDF (273/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language | |||
|
◁ |
CHAPTER 10 LIBRARY FUNCTIONS
7-41 sqrtf
Mathematical Functions
FUNCTION
sqrtf finds the square root.
HEADER
math.h
FUNCTION PROTOTYPE
float sqrtf (float x);
Function
sqrtf
Arguments
x ... Numeric value to perform
operation
Return Value
When x ⥠0 ... Square root of x
When x = ±0 ... ±0
When x < 0 ... NaN
EXPLANATION
⢠Calculates the square root of x.
⢠In the case of area error of x < 0, 0 is returned and EDOM is set to errno.
⢠If x is non-numeric, NaN is returned.
⢠If x is ±0, ±0 is returned.
Userâs Manual U15556EJ1V0UM
273
|
▷ |