Browse Source

add decimal subpackage ref

Jon Lipstate 2 years ago
parent
commit
846c0f7cfc
1 changed files with 4 additions and 4 deletions
  1. 4 4
      core/strconv/decimal/decimal.odin

+ 4 - 4
core/strconv/decimal/decimal.odin

@@ -501,7 +501,7 @@ Example:
 
 
 	import "core:fmt"
 	import "core:fmt"
 	import "core:strconv"
 	import "core:strconv"
-	strconv_round_down_example :: proc() {
+	round_down_example :: proc() {
 		d: decimal.Decimal
 		d: decimal.Decimal
 		str := [64]u8{}
 		str := [64]u8{}
 		ok := decimal.set(&d, "123.456")
 		ok := decimal.set(&d, "123.456")
@@ -532,9 +532,9 @@ WARNING: There are no guarantees about overflow.
 Example:
 Example:
 
 
 	import "core:fmt"
 	import "core:fmt"
-	import "core:strconv"
-	strconv_rounded_integer_example :: proc() {
-    	d: decimal.Decimal
+	import "core:strconv/decimal"
+	rounded_integer_example :: proc() {
+		d: decimal.Decimal
 		ok := decimal.set(&d, "123.456")
 		ok := decimal.set(&d, "123.456")
 		fmt.println(decimal.rounded_integer(&d))
 		fmt.println(decimal.rounded_integer(&d))
 	}
 	}