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.

$ g++ -std=c++17 UniverseSize.cpp -o UniverseSize -lfmt $ ./UniverseSize The Universe is 4.40018e+27m across