IntExtensions extension

Extensions on int for convenience.

on

Methods

toZeroIfNegative() int

Available on int, provided by the IntExtensions extension

Returns 0 if the number is negative, otherwise returns the number itself.