Aurora.3 icon indicating copy to clipboard operation
Aurora.3 copied to clipboard

Implemented SI prefixes (KILO, MEGA, GIGA, TERA etc.)

Open FluffyGhoster opened this issue 1 year ago • 3 comments

Implemented SI prefixes (KILO, MEGA, GIGA, TERA etc.)

FluffyGhoster avatar Apr 05 '24 16:04 FluffyGhoster

!review

FluffyGhoster avatar Apr 05 '24 16:04 FluffyGhoster

If there is nothing besides watts that is using SI Prefixes, what is the advantage of implementing them in this way? (Given that most of them are not used at the moment)

Arrow768 avatar Apr 05 '24 18:04 Arrow768

If there is nothing besides watts that is using SI Prefixes, what is the advantage of implementing them in this way? (Given that most of them are not used at the moment)

  • It's the SI powers, currently it's used for watts, we can use it for meters, eg. it can be applied to the overmap speeds, to vectors, for math operations, etcetera
  • If/when we add new units, it's there ready
  • It's in the air to update our power system to use joules instead, for example
  • It separates the quantity from the matter -> if we swap watts to something else, you just have to update the specific metric, not everything else that comes with it
  • We could already use this for the chemical energy system for example
  • If you need 0.001 units of a medication to do something, you can express it as 1 MILLI (LITER? if we stop using fantasy units)
  • It makes powers (or anything else) conversions evident in the code (data["power_draw"] = active_power_usage * MILLI WATTS)

FluffyGhoster avatar Apr 05 '24 18:04 FluffyGhoster