* Parse an unparse type decls (and refactor impl attributes slightly) Signed-off-by: Nick Cameron <nrc@ncameron.org> * Remove special treatment of geometric types from parser and executor Signed-off-by: Nick Cameron <nrc@ncameron.org> * Generate docs for std types Signed-off-by: Nick Cameron <nrc@ncameron.org> * Hover tool-tips for types and fixup the frontend Signed-off-by: Nick Cameron <nrc@ncameron.org> * Fixes Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
27 KiB
title, excerpt, layout
title | excerpt | layout |
---|---|---|
yd | Yards conversion factor for current projects units. | manual |
Yards conversion factor for current projects units.
No matter what units the current project uses, this function will always return the conversion factor to yards.
For example, if the current project uses inches, this function will return 36
. If the current project uses millimeters, this function will return 914.4
. If the current project uses yards, this function will return 1
.
Caution: This function is only intended to be used when you absolutely MUST have different units in your code than the project settings. Otherwise, it is a bad pattern to use this function.
We merely provide these functions for convenience and readability, as 10 * yd()
is more readable that your intent is "I want 10 yards" than 10 * 914.4
, if the project settings are in millimeters.
yd(): number
Tags
units
Returns
Examples
totalWidth = 10 * yd()