Skip to content

Commit

Permalink
std.math: update round doc comment to match the builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
torque committed Aug 12, 2024
1 parent cab027f commit b015b97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/std/math.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,8 @@ test ByteAlignedInt {
try testing.expect(ByteAlignedInt(u129) == u136);
}

/// Rounds the given floating point number to an integer, away from zero.
/// Rounds the given floating point number to the nearest integer.
/// If two integers are equally close, round away from zero.
/// Uses a dedicated hardware instruction when available.
/// This is the same as calling the builtin @round
pub inline fn round(value: anytype) @TypeOf(value) {
Expand Down

0 comments on commit b015b97

Please sign in to comment.