Skip to content

Modern Math MinValue

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Math Library › Math Library › MinValue

MinValue

Returns the smallest value added so far.

Syntax

RunningStats.MinValue( ) as float64

Notes

  • Tracked as values arrive, so it costs one comparison per Add rather than a second pass.
  • MinOf is the array equivalent.
  • On an empty accumulator it reads as NaN.

Examples

#import "std/numeric"
using numeric

dim rs as RunningStats
for i as int32 = 1 to 5 : rs.Add( i ) : next

print rs.MinValue( )         '' 1
print rs.MaxValue( )         '' 5

Library: Math Library
Category: Math Library
Documented under: Members

Clone this wiki locally