Learn R Programming

baizer (version 0.8.0)

round_string: from float number to fixed digits character

Description

from float number to fixed digits character

Usage

round_string(x, digits = 2)

Value

character

Arguments

x

number

digits

hold n digits after the decimal point

Examples

Run this code
round_string(1.1, 2)

Run the code above in your browser using DataLab