dvf: Divide and Format

Description Usage Arguments Value See Also Examples

View source: R/operators.R

Description

dvf is a shorthand for division and formatting with specified number of decimal points

Usage

1
dvf(a, b, decimals = 3)

Arguments

a

numerator

b

denominator

decimals

number of decimal points to display

Value

formatted a/b computation. Division by zero yields Inf, division by Inf yields zero

See Also

round in base package

Examples

1
2
3
dvf(1,3)
dvf(1,3,decimals = 1)
dvf(1,3,decimals = 8)

ShaulAb/typeless documentation built on May 28, 2019, 3:15 p.m.