zig/lib/std/math
Andrew Kelley 7e2a26c0c4 std.io.Writer.printValue: rework logic
Alignment and fill options only apply to numbers.

Rework the implementation to mainly branch on the format string rather
than the type information. This is more straightforward to maintain and
more straightforward for comptime evaluation.

Enums support being printed as decimal, hexadecimal, octal, and binary.

`formatInteger` is another possible format method that is
unconditionally called when the value type is struct and one of the
integer-printing format specifiers are used.
2025-07-07 22:43:53 -07:00
..
big std.io.Writer.printValue: rework logic 2025-07-07 22:43:53 -07:00
complex std.math.complex: fix cosh/tanh 2024-07-30 20:31:22 +12:00
acos.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
acosh.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
asin.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
asinh.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
atan.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
atan2.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
atanh.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
big.zig big.int: implement float conversions 2025-06-15 14:15:18 -04:00
cbrt.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
complex.zig std.math.complex: Add squared magnitude function (#21998) 2024-11-26 13:03:48 +00:00
copysign.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
cosh.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
expm1.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
expo2.zig
float.zig x86_64: increase passing test coverage on windows 2025-06-19 18:41:12 -04:00
frexp.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
gamma.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
gcd.zig std.math: change gcd's implementation to use Stein's algorithm instead of Euclid's (#21077) 2024-09-23 17:15:57 -07:00
hypot.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
ilogb.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
isfinite.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
isinf.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
isnan.zig std.math: Disable isSignalNan test on mips32. 2024-11-26 18:29:13 +01:00
isnormal.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
iszero.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
lcm.zig std.math: Add least common multiple (lcm) 2025-03-24 16:07:40 +01:00
ldexp.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
log.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
log1p.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
log2.zig x86_64: rewrite scalar <<| 2025-05-17 18:00:17 -04:00
log10.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
log_int.zig Sema: rewrite semantic analysis of function calls 2025-01-09 06:46:47 +00:00
modf.zig std.math: rework modf 2024-03-29 09:33:57 +00:00
nextafter.zig std.math: rename make_f80 to F80.toFloat and break_f80 to F80.fromFloat 2024-09-02 00:10:22 +03:00
pow.zig pow: fix typo 0 instead of inf 2025-04-05 21:20:10 +02:00
powi.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
scalbn.zig Remove redundant test name prefixes now that test names are fully qualified 2024-02-26 15:18:31 -08:00
signbit.zig x86_64: increase passing test coverage on windows 2025-06-19 18:41:12 -04:00
sinh.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
sqrt.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
tanh.zig std.math.tanh: fix special cases comment 2024-12-27 03:12:03 +01:00