node-d3-format - Formatting numbers for human consumption - NodeJS module

Property Value
Distribution Ubuntu 19.04 (Disco Dingo)
Repository Ubuntu Universe amd64
Package filename node-d3-format_1.0.2-1_all.deb
Package name node-d3-format
Package version 1.0.2
Package release 1
Package architecture all
Package type deb
Category universe/web
License -
Maintainer Ubuntu Developers <>
Download size 2.66 KB
Installed size 16.00 KB
Sometimes JavaScript doesn’t display numbers the way you expect. For example,
printing tenths with a naive simple loop might give you 0, 0.1, 0.2,
0.30000000000000004, 0.4, 0.5, 0.6000000000000001, 0.7000000000000001, 0.8,
0.9 - welcome to binary floating point!
Yet rounding error is not the only reason to customize number formatting. A
table of numbers should be formatted consistently for comparison; above, 0.0
would be better than 0. Large numbers should have grouped digits (e.g.,
42,000) or be in scientific or metric notation (4.2e+4, 42k). Currencies
should have fixed precision ($3.50). Reported numerical results should be
rounded to significant digits (4021 becomes 4000). Number formats should
appropriate to the reader’s locale (42.000,00 or 42,000.00). The list goes on.
Formatting numbers for human consumption is the purpose of d3-format, which is
modeled after Python 3’s format specification mini-language (PEP 3101).
This package contains the NodeJS package.


Package Version Architecture Repository
node-d3-format_1.0.2-1_all.deb 1.0.2 all Ubuntu Universe
node-d3-format - - -


Name Value
libjs-d3-format -


Type URL
Binary Package node-d3-format_1.0.2-1_all.deb
Source Package d3-format

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install node-d3-format deb package:
    # sudo apt-get install node-d3-format




2017-10-09 - Ximin Luo <>
d3-format (1:1.0.2-1) unstable; urgency=medium
* Take back my package, thank you very much.
* Remove from team maintenance.
2016-11-21 - Ximin Luo <>
d3-format (1.0.2-2) unstable; urgency=medium
* Use debhelper compat level 10.
* Correct binary packages from arch:any to arch:all.
* Use node-tap to run tests, instead of node-tape.
2016-11-19 - Ximin Luo <>
d3-format (1.0.2-1) unstable; urgency=medium
* Initial release. (Closes: #844784)

See Also

Package Description
node-d3-geo_1.9.0-4_all.deb Shapes and calculators for spherical coordinates
node-d3-hierarchy_1.1.5-2_all.deb Layout algorithms for visualizing hierarchical data
node-d3-interpolate_1.1.5-2_all.deb Interpolate numbers, colors, strings, arrays, objects, whatever!
node-d3-path_1.0.5-3_all.deb Serialize Canvas path commands to SVG
node-d3-polygon_1.0.3-3_all.deb Operations for two-dimensional polygons
node-d3-quadtree_1.0.3-2_all.deb Two-dimensional recursive spatial subdivision
node-d3-queue_3.0.7-3_all.deb Evaluate asynchronous tasks with configurable concurrency
node-d3-random_1.1.0-4_all.deb Generate random numbers from various distributions
node-d3-request_1.0.6-3_all.deb convenient alternative to XMLHttpRequest
node-d3-scale_1.0.6-3_all.deb Encodings that map abstract data to visual representation
node-d3-selection_1.1.0-3_all.deb select elements and join them to data
node-d3-shape_1.2.0-2_all.deb Graphical primitives for visualization, such as lines and areas
node-d3-time-format_2.0.5-2_all.deb time formatter and parser inspired by strftime and strptime
node-d3-time_1.0.7-2_all.deb calculator for humanity’s peculiar conventions of time
node-d3-timer_1.0.7-5_all.deb efficient queue to manage thousands of concurrent animations