Currently, one has to write
def InverseTime = Dimensionless / Time.
It would be nicer to be able to write
def InverseTime = 1.0 / Time
but this doesn't work because float factors are (rightfully) not allowed in def expressions.
An easy solution might be to allow parsing of the literal 1 (and only 1) as dimensionless.
Currently, one has to write
def InverseTime = Dimensionless / Time
. It would be nicer to be able to writedef InverseTime = 1.0 / Time
but this doesn't work because float factors are (rightfully) not allowed indef
expressions. An easy solution might be to allow parsing of the literal1
(and only1
) as dimensionless.