summaryrefslogtreecommitdiff
path: root/exercises/094_c_math.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-02-19 17:52:16 +0100
committerChris Boesch <chrboesch@noreply.codeberg.org>2023-02-19 17:52:16 +0100
commit1d10a062e22858d187d053853b9fa82cda1a8cdc (patch)
tree25c5cb7c3f55b462719dcefe532cb5a8a7d5f839 /exercises/094_c_math.zig
parentb2de68869ed16a607c00a31d4ea9f140f8a0089e (diff)
check for dev1650 and some minor polish
Diffstat (limited to 'exercises/094_c_math.zig')
-rw-r--r--exercises/094_c_math.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/exercises/094_c_math.zig b/exercises/094_c_math.zig
index a8596b7..b8e65a3 100644
--- a/exercises/094_c_math.zig
+++ b/exercises/094_c_math.zig
@@ -29,5 +29,6 @@ pub fn main() !void {
// Here we call the C function 'fmod' to get our normalized angel.
const result = c.fmod(angel, circle);
+ // We use formatters for the desired precision and to truncate the decimal places
std.debug.print("The normalized angle of {d: >3.1} degrees is {d: >3.1} degrees.\n", .{ angel, result });
}