Skip to content

std.math: add fns degrees, radians, isqrt and fract #9889

@ghost

Description

degrees and radians
Converting to and from degrees and radians is a common math task so these two could be really handy.

isqrt
I know that math.sqrt can return an int sqrt but it's more clear if there's something that indicates it. And an int sqrt isn't "exactly" a sqrt. It's more like a floored sqrt.

fract
It returns the fractional part(e.g. .5 from 1.5).
This is really just for convenience. Not as significant as the other three.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.standard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions