Implemented function to split floating point numbers at the decimal place (equivalent to C's modf function). Fixes #4195.

This commit is contained in:
A. S. Budden 2016-05-31 13:26:41 +01:00
commit 46a2993917
2 changed files with 27 additions and 0 deletions

View file

@ -61,6 +61,8 @@ Library Additions
- Added ``strscans`` module that implements a ``scanf`` for easy input extraction.
- Added a version of ``parseutils.parseUntil`` that can deal with a string ``until`` token. The other
versions are for ``char`` and ``set[char]``.
- Added ``splitDecimal`` to ``math.nim`` to split a floating point value
into an integer part and a floating part (in the range -1<x<1).
Compiler Additions