roundToFactorOfTen: Round Factor Ten

Description Usage Arguments Value Examples

Description

roundToFactorOfTen rounds value to nearest factor of 10.

Usage

1

Arguments

x

An integer to be rounded

Value

An integer rounded to the nearest factor of ten

Examples

1
2
3
roundToFactorOfTen(19) # would give 20
roundToFactorOfTen(194) # would give 200
roundToFactorOfTen(1094) # would give 2000

sanger-pathogens/deago documentation built on May 28, 2019, 8:42 a.m.