apply_decimal_mark: Apply locale decimal mark to a sprintf-formatted string

View source: R/number_utils.R

apply_decimal_markR Documentation

Apply locale decimal mark to a sprintf-formatted string

Description

Replaces the period decimal mark in a sprintf-formatted string with the locale-appropriate decimal mark, and fixes negative-zero artefacts.

Usage

apply_decimal_mark(x, marks)

Arguments

x

Character string (already formatted with sprintf).

marks

List with big.mark and decimal.mark as returned by resolve_number_marks.

Value

Character string with corrected decimal marks and no negative zeros.


summata documentation built on May 7, 2026, 5:07 p.m.