Skip to content

Commit 0b3716c

Browse files
committed
ST6RI-16 Removed TODO in SI; scientific notation is supported.
- With some limitations. (See also resolution to ST6RI-37.)
1 parent 1f82e7d commit 0b3716c

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

sysml/src/library/SI.alf

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ package SI {
55
/*
66
* SI decimal prefixes for multiples and sub-multiples
77
*
8-
* TODO: Should use scientific real number notation for conversionFactor -- but not supported yet
98
* TODO: Complete SI prefixes
109
*/
11-
nano = UnitPrefix(name => "nano", symbol => "n", conversionFactor => 0.000000001);
12-
micro = UnitPrefix(name => "micro", symbol => "μ", conversionFactor => 0.000001);
13-
milli = UnitPrefix(name => "milli", symbol => "m", conversionFactor => 0.001);
14-
kilo = UnitPrefix(name => "kilo", symbol => "k", conversionFactor => 1000.0);
15-
mega = UnitPrefix(name => "mega", symbol => "M", conversionFactor => 1000000.0);
16-
giga = UnitPrefix(name => "giga", symbol => "G", conversionFactor => 1000000000.0);
10+
nano = UnitPrefix(name => "nano", symbol => "n", conversionFactor => 1.0E-9);
11+
micro = UnitPrefix(name => "micro", symbol => "μ", conversionFactor => 1.0E-6);
12+
milli = UnitPrefix(name => "milli", symbol => "m", conversionFactor => 1.0E-3);
13+
kilo = UnitPrefix(name => "kilo", symbol => "k", conversionFactor => 1.0E+3);
14+
mega = UnitPrefix(name => "mega", symbol => "M", conversionFactor => 1.0E+6);
15+
giga = UnitPrefix(name => "giga", symbol => "G", conversionFactor => 1.0E+9);
1716

1817
/*
1918
* SI binary prefixes for multiples - see e.g. https://en.wikipedia.org/wiki/Binary_prefix

0 commit comments

Comments
 (0)