You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release 3.0.0
Clean up naming of units. Add information unit.
New:
* Add information units for bit, byte, kilobit, kilobyte, kibibit, kibibyte and so on up to exabyte
Breaking changes:
* Delete OtherUnit.Piece
* Move OtherUnit.Table/Teaspoon to Volume
* Rename Month30Days Year365Days units to Month and Year
* Fix plural naming of Pressure.KilogramsForcePerSquareCentimeterInOnePascal
* Fix plural naming of Ratio.PartsPer-units
* Custom units added manually via UnitSystem.MapUnitToAbbreviation()
Fixes:
* Fall back to US English culture when parsing/getting abbreviations
* Fall back to custom string if no abbreviation defined for unit
Behind the scenes:
* Replace T4 templates with PowerShell + JSON templates
* Support custom tolerance per unit in tests
* Support decimal and long base unit types (decimal used in Information unit)
* Move code more consistently into Custom/GeneratedCode folders
* Fix misc R# warnings
* Match R# cleanup profile in generated code
Copy file name to clipboardExpand all lines: Src/Scripts/UnitDefinitions/Information.json
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
1
{
2
2
"Name": "Information",
3
3
"BaseUnit": "Bit",
4
+
"BaseType": "decimal",
4
5
"XmlDoc": "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.",
0 commit comments