shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
roundWithSign
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.math
This function allows you to round a number by keeping his sign ”+” or ”-“
Params
- number*-Number
The number to round
Return
- -Number
The rounded number
Example
import { roundWithSign } from '@blackbyte/sugar/math';
roundWithSign(1.5); // => 1
roundWithSign(-1.5); // => -1Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space