From 2079898433ca036465f0b02ca780048adfa7041b Mon Sep 17 00:00:00 2001 From: T045TN1NJ4 Date: Sat, 8 Mar 2025 15:05:02 -0500 Subject: [PATCH] Update explicit-accuracy-for-math-round.md --- docs/explicit-accuracy-for-math-round.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/explicit-accuracy-for-math-round.md b/docs/explicit-accuracy-for-math-round.md index cd703f6..7c4039d 100644 --- a/docs/explicit-accuracy-for-math-round.md +++ b/docs/explicit-accuracy-for-math-round.md @@ -25,7 +25,7 @@ local function round_to( n: number, decimal_places: number? ) end print( round_to(3.1415, 2) ) -- Output: 3.14 ``` -The proposed change provides the same level of convenience as the above `round_to` function without impacting the--for lack of a better term--'visual' size of projects. The change is simple: introduce a second parameter to `math.round` which accepts `number?`s. +The proposed change provides the same level of convenience as the above `round_to` function without impacting the--for lack of a better term--'visual' size of projects. The change is simple: introduce a second parameter to `math.round` which accepts a `number?`. ```lua -- proposed change print( math.round(3.1415, 2) ) -- Output: 3.14