Skip to content

Commit 59037da

Browse files
committed
Convert BitRate and Information to double
1 parent fb828d1 commit 59037da

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Common/UnitDefinitions/BitRate.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"Name": "BitRate",
33
"BaseUnit": "BitPerSecond",
4-
"ValueType": "decimal",
54
"XmlDocSummary": "In telecommunications and computing, bit rate is the number of bits that are conveyed or processed per unit of time.",
65
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Bit_rate",
76
"BaseDimensions": { "T": -1 },
@@ -22,8 +21,8 @@
2221
{
2322
"SingularName": "BytePerSecond",
2423
"PluralName": "BytesPerSecond",
25-
"FromUnitToBaseFunc": "{x} * 8m",
26-
"FromBaseToUnitFunc": "{x} / 8m",
24+
"FromUnitToBaseFunc": "{x} * 8",
25+
"FromBaseToUnitFunc": "{x} / 8",
2726
"Prefixes": [ "Kilo", "Mega", "Giga", "Tera", "Peta", "Exa", "Kibi", "Mebi", "Gibi", "Tebi", "Pebi", "Exbi" ],
2827
"Localization": [
2928
{

Common/UnitDefinitions/Information.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"Name": "Information",
33
"BaseUnit": "Bit",
4-
"ValueType": "decimal",
54
"XmlDocSummary": "In computing and telecommunications, a unit of information is the capacity of some standard data storage system or communication channel, used to measure the capacities of other systems and channels. In information theory, units of information are also used to measure the information contents or entropy of random variables.",
65
"Units": [
76
{
87
"SingularName": "Byte",
98
"PluralName": "Bytes",
10-
"FromUnitToBaseFunc": "{x} * 8m",
11-
"FromBaseToUnitFunc": "{x} / 8m",
9+
"FromUnitToBaseFunc": "{x} * 8",
10+
"FromBaseToUnitFunc": "{x} / 8",
1211
"Prefixes": [ "Kilo", "Mega", "Giga", "Tera", "Peta", "Exa", "Kibi", "Mebi", "Gibi", "Tebi", "Pebi", "Exbi" ],
1312
"Localization": [
1413
{

0 commit comments

Comments
 (0)