Skip to contents

Converts a numeric value to a string with a fixed number of decimal places, including trailing zeros. Returns "NaN" if input is NA.

Usage

AS.fixdec(x, digits = 2)

Arguments

x

A numeric value.

digits

Number of decimal places. Default = 2.

Value

A string representation of x.