If you build Bazel from master it does already support float
. I added Bazel from master to my system via the alias potato
. Bazel 3.7.2 (and earlier) does not support the float
type. I guess we won't see any float support in 3.7.x.
If you need floating point math for Bazel 3.7.2 and earlier you have to implement floating-point math using integer tricks. See for instance here.
Maybe you can achieve your goal without requiring float as shown here or by falling back to a "normal" Python script.
BTW: In the documentation, you can switch to the current used Bazel version - which will give you 404 for float and Bazel 3.7.2 and earlier. Only for master, there is documentation available.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…