Method in arith · Saturating coil-stdlib

Saturating::saturating_sub

fn saturating_sub(S a, S b) -> S
Import
use arith::{Saturating};
Source: src/arith.hy

a - b clamped to the type’s range.

Parameters#

NameType
aS
bS

Returns#

S

See also#

↑ ↓ navigate ↵ open