Commit Graph
4 Commits
Author SHA1 Message Date
Johann Muszynski 4050e7128b docs: rename Num.highest to Num.largest and Num.lowest to Num.smallest in core module docs 2016-08-04 18:17:45 +00:00
Johann Muszynski f2077844b3 feat: rename Num highest/lowest/epsilon to largest/smallest and update primitives
Rename the static Num class properties from `highest`/`lowest`/`epsilon` to `largest`/`smallest` in wren_core.c, replacing the DBL_MAX/-DBL_MAX/DBL_EPSILON return values with updated DEF_PRIMITIVE implementations and corresponding PRIMITIVE registrations in wrenInitializeCore.
2016-08-04 18:15:55 +00:00
Johann Muszynski a53a86f469 docs: document Num.highest, Num.lowest, and Num.epsilon properties in core num module 2016-07-10 20:26:23 +00:00
Johann Muszynski 38b7ad62ad feat: add highest, lowest, and epsilon static properties to Num class using DBL_MAX and DBL_EPSILON
Add three new static primitives to the Num class: `highest` returning `DBL_MAX`, `lowest` returning `-DBL_MAX`, and `epsilon` returning `DBL_EPSILON`. Include `<float.h>` header for the floating-point limit constants. Register the new primitives in `wrenInitializeCore` alongside the existing `pi` static property.
2016-07-06 17:08:00 +00:00