unitsd 0.1.0
Units and Quantities of Measurement library for D.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
unitsd
Units and Quantities of Measurement library for D.
This is a modified version of David Nadlinger's original library for working with units of measurement in D.
Task List
[x] Use new alias syntax
[x] Use new enum syntax
[x] Use new template syntax
[x] Use UFCS
[x] Use
AliasSeq
inplace ofTypeTuple
[x] Use
std.meta.Repeat
instead ofRepeatTypeTuple
[x] Qualify unittests with, when possible,
@safe pure nothrow @nogc
[x] Indentations according to Phobos codestandard
[ ] Remove need for
makeIndexCtfe
[ ] Move
staticFind
andIndexedTuple
tostd.meta
[ ] Replace
Curry
withstd.functional.applyLeft
.[ ] Make
ScaledUnit
with integer precision (such as 10 degrees) work with trigonometric functions insi.d
. Currently errors caused by incorrect cast in{ScaledAffine}Unit.{fromto}Base
.[ ] Perhaps add
LinearUnit
and use it to express mappings between, for instance, Celsius and Fahrenheit.[ ] Refactor
GetConversion
to do a breadthfirst search instead of current depthfirst.[ ] Find a way to represent sample rate. Use it to infer FFTfrequencies. Add it either here or to
samplerate
orsampling
.
Original discussion at: http://forum.dlang.org/thread/io1vgo$1fnc$1@digitalmars.com?page=1
This alternative implementation contains unit expression parsing which might be of interest aswell: https://github.com/biozic/quantities/issues/2#issuecomment150809715
 0.1.0 released 8 years ago
 nordlow/unitsd
 github.com/nordlow/unitsd
 Boost
 Authors:
 Dependencies:
 none
 Versions:

0.1.0 2016Apr10 ~master 2021Mar13  Download Stats:


0 downloads today

0 downloads this week

0 downloads this month

0 downloads total

 Score:
 1.4
 Short URL:
 unitsd.dub.pm