I'm trying to add floating-point operations to my .bzl file. According to the Bazel globals specification, the float() function should be defined, as per the Starlark specification. However, when I try to add float(), I get the following error,
ERROR: /home/username/code/project/foo.bzl:4:3: name 'float' is not defined
Is there anything else I have to import? I assume that since the float() keyword is defined in the global namespace I wouldn't need to import it. According to the starlark spec page on the Bazel site page, floats are not supported, but this directly conflicts with the float() specification on the global page.
update: running Bazel 3.7.1