Skip to content

List of units #311

Answered by printfn
tessus asked this question in Q&A
Oct 1, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi, thanks for raising these issues. I've now added light_speed and lightspeed units; they will be in the next release. As you've probably worked out all supported units are listed in https://github.com/printfn/fend/blob/main/core/src/units/builtin.rs, and built-in functions and some other constants can be found in https://github.com/printfn/fend/blob/main/core/src/ast.rs#L747.

It would definitely be good to make the list of supported units available in the documentation, perhaps by automatically generating documentation from the source code. I might take a look at implementing this soon.

The reason that converting to c doesn't work is that I've implemented c to always expand to its value…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tessus
Comment options

Answer selected by tessus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants