Skip to content

Commit

Permalink
Update si.py with new prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rieder authored Jul 10, 2024
1 parent cf040fe commit 7b06eb4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/amuse/units/si.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ def yotta(unit):
return named("yotta" + unit.name, "Y" + unit.symbol, 1.0e24 * unit)


def ronna(unit):
return named("ronna" + unit.name, "R" + unit.symbol, 1.0e27 * unit)


def quetta(unit):
return named("quetta" + unit.name, "Q" + unit.symbol, 1.0e30 * unit)


def deci(unit):
return named("deci" + unit.name, "d" + unit.symbol, 0.1 * unit)

Expand Down Expand Up @@ -98,4 +106,12 @@ def yocto(unit):
return named("yocto" + unit.name, "y" + unit.symbol, 1.0e-24 * unit)


def ronto(unit):
return named("ronto" + unit.name, "r" + unit.symbol, 1.0e-27 * unit)


def quecto(unit):
return named("quecto" + unit.name, "q" + unit.symbol, 1.0e-30 * unit)


k = kilo

0 comments on commit 7b06eb4

Please sign in to comment.