BigField struct
#include <GGUI/Public/Binding.h>
BigField: a field holding a BigNumber.
Incremental-game amounts don't fit in a float, so a big field can't be used in a GGExpr. It can be bound in three ways:
const BigField gold{ GoldField }, cost{ CostField }; ui.Label(GGBind(wallet, gold), { .Notation = NumberNotation::Suffix }); // "1.23M" ui.Progress({}, GGBind(wallet, gold / cost)); // 0..1 ui.Visible(GGBind(wallet, gold >= cost)); // affordable
The arithmetic is done in BigNumber; only the result becomes a float. CPU only.