You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
client.query('SELECT prices FROM data_with_numbers', (err, res) => {
155
155
if (err) throw err;
@@ -254,11 +254,11 @@ The library of numerical functions here is kept deliberately minimal. It is base
254
254
255
255
### Conversion to and from other data types
256
256
257
-
Decimal128 objects can be constructed from Numbers, Strings, and BigInts. Similarly, there will be conversion from Decimal128 objects to Numbers, String, and BigInts.
257
+
Decimal objects can be constructed from Numbers, Strings, and BigInts. Similarly, there will be conversion from Decimal objects to Numbers, String, and BigInts.
258
258
259
259
### String formatting
260
260
261
-
+`toString()` is similar to the behavior on Number, e.g., `new Decimal128("123.456").toString()` is `"123.456"`. ([#12](https://github.com/tc39/proposal-decimal/issues/12))
261
+
+`toString()` is similar to the behavior on Number, e.g., `new Decimal("123.456").toString()` is `"123.456"`. ([#12](https://github.com/tc39/proposal-decimal/issues/12))
262
262
+`toFixed()` is similar to Number's `toFixed()`
263
263
+`toPrecison()` is similar to Number's `toPrecision()`
264
264
+`toExponential()` is similar to Number's `toExponential()`
0 commit comments