Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add `float` function to parse string to floating point value #3307
Please add a
This will allow us to pass named floating point arguments from a shortcode.
For my use-case, this is to pass a non-integer "aspect ratio" value. My current workaround is to supply this as a rational two-integer tuple and to perform the division in the template, but is only an approximation when the value is irrational.
Agreed, the addition of a
Is something similar already on the roadmap?
Many thanks in advance.