mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
math: add missing docstrings for vlib/math functions (#19617)
This commit is contained in:
parent
c526c6f3a2
commit
65dd69c5d9
4 changed files with 6 additions and 2 deletions
|
@ -53,6 +53,7 @@ pub fn is_inf(f f64, sign int) bool {
|
|||
return (sign >= 0 && f > max_f64) || (sign <= 0 && f < -max_f64)
|
||||
}
|
||||
|
||||
// is_finite returns true if f is finite
|
||||
pub fn is_finite(f f64) bool {
|
||||
return !is_nan(f) && !is_inf(f, 0)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue