vtils

Home > validator > yup > NumberSchema > round

yup.NumberSchema.round() method

Signature:

round(type?: 'floor' | 'ceil' | 'trunc' | 'round'): this;

Parameters

Parameter Type Description
type ‘floor’ | ‘ceil’ | ‘trunc’ | ‘round’ (Optional)

Returns:

this