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
$ rustc UniverseSize.rs error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> UniverseSize.rs:10:49 | 10 | static lightYearInMeters:f64 = 9460730472580800.f64; | ^^^ | help: if intended to be a floating point literal, consider adding a `0` after the period | 10 | static lightYearInMeters:f64 = 9460730472580800.0f64; | + error: aborting due to previous error For more information about this error, try `rustc --explain E0610`.

Solution