Skip to content

Some notes on the Math module #53

Open
@aspeddro

Description

@aspeddro

Math.Int.maxMany, Math.Int.minMany, Math.maxMany and Math.minMany variadic functions

Math.Int.maxMany([]) not returns an int. It's compile to Math.max() and returns -Infintiy. In JS Math.max([]) returns 0.

let a = Math.Int.maxMany([])
Float.isFinite(a) // false

Math.Int.pow

This function has been deprecated for int. The return type may be not int, example pow(3, ~exp=-3) return a float

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions