Pure Programmer
Blue Matrix


Cluster Map

Project: Universe Size

Given that the universe is about 14.26 gigaparsecs in any direction, compute this width of the universe in meters. A [[gigaparsec]] is one billion (10⁹) parsecs, a [[parsec]] is approximately 3.261563777167433562 light-years and a [[light-year]] is 9,460,730,472,580,800 meters exactly. Use named constants where appropriate.

Output
$ node UniverseSize.js The Universe is 4.40017623120669e+27m across

Solution