Skip to main content Link Search Menu Expand Document (external link)

Rounder overview

This module implements a CVRounder, i.e. a function that can round a number or a BigDecimal to the given precision and according to the passed CVRoundingOption


Table of contents


Constructors

bigDecimal

Constructor of a BigDecimal rounder from a CVRounderParams

Signature

export declare const bigDecimal: (rounderParams: CVRounderParams.Type) => Type<BigDecimal.BigDecimal>

number

Constructor of a number rounder from a CVRounderParams

Signature

export declare const number: (rounderParams: CVRounderParams.Type) => Type<number>

Models

Type (interface)

Type of a CVRounder

Signature

export interface Type<in out N extends number | BigDecimal.BigDecimal> extends MTypes.OneArgFunction<N> {}