blob: 77e974b5662d756d931980b868b71a13bbb32eab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
'use strict';
module.exports = function doubleval(mixedVar) {
// discuss at: http://locutus.io/php/doubleval/
// original by: Brett Zamir (http://brett-zamir.me)
// note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes
// note 1: it different from the PHP implementation. We can't fix this unfortunately.
// example 1: doubleval(186)
// returns 1: 186.00
var floatval = require('../var/floatval');
return floatval(mixedVar);
};
//# sourceMappingURL=doubleval.js.map
|