HaxeFoundation / HaxeFoundation/haxe

Min/Max constants for numeric values

Open
#6,054 11 comments 24 reactions 0 assignees View on GitHub
Hacktoberfest standard library
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Haxe lacks min/max constants for numeric (`Int`, `Float`, `UInt`) types.
There is an implementation in as3hx [Float](https://github.com/HaxeFoundation/as3hx/blob/master/src/as3hx/Compat.hx#L216-L258) [Int](https://github.com/HaxeFoundation/as3hx/blob/master/src/as3hx/Compat.hx#L260-L305)
Those constants could be added to `Math` class or to corresponding base types (like `Int.MAX`, `Float.MIN` etc).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.