Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/tests/unit_consistency_misc.nbt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ assert_eq(16 tablespoon, 1 cup)
assert_eq(3 teaspoon, 1 tablespoon, 1e-5 teaspoon)
assert_eq(1 floz, 2 tablespoon)
assert_eq(1 hogshead, 63 gallon)
assert_eq(1 board_foot, 144 inch³)
assert_eq(12 board_foot, 1 ft³, 1e-9 ft³)
assert_eq(1 BF, 1 board_foot)
assert_eq(1 bf, 1 board_foot)
assert_eq(1 rod, 16.5 foot)

assert_eq(1 foot, 0.3048 meter, 1e-9 m)
Expand Down
5 changes: 5 additions & 0 deletions numbat/modules/units/us_customary.nbt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ unit hogshead: Volume = 63 gallon
@aliases(barrels)
unit barrel: Volume = 42 gallon

@name("Board foot")
@url("https://en.wikipedia.org/wiki/Board_foot")
@aliases(board_feet, BF: short, bf: short)
unit board_foot: Volume = 144 in^3

@name("US rod")
@url("https://en.wikipedia.org/wiki/Rod_(unit)")
@aliases(rods, perch)
Expand Down
Loading