Feature SS-3530
3 votes

In(var,unit) function to extract values for a given unit

Created by Martin Kraska on 4/1/2018 5:35 PM Last Updated by Martin Kraska on 8/11/2023 1:52 PM
%
 (hrs)
Logged: 0   (hrs)

 Description

The proposal is to provide a function In(var, unit), which provides the numerical value of the variable for the given unit.

A possible operator form could be

var in unit

just as you would write at the axes of a diagram

For ordinary units this is not essential, because you just divide by the unit, but for non-absolute temperature units this would simplify the appearance.

If we had Mathcad style placeholders for x and y, then this would give perfect axis labels.

    Martin Kraska (Friday, August 11, 2023 1:52 PM) #

This is only applicable to results. For function arguments, one still would have to multiply x by the desired unit.

This would read as

f(x cm) in kg