mirror of
https://github.com/godotengine/godot
synced 2024-11-02 11:59:10 +00:00
09a905ca80
Fixes #34541 Renamed MAX_DIGITS to MAX_DECIMALS, since it only changes the amount of digits after the decimal point. Increased MAX_DECIMALS to 32, and made String::num use MAX_DECIMALS consistently. If -1 is passed as decimal precision to String::num, it now gets changed to the correct precision based on the number's magnitude, instead of using printf default(which is 6) String::num_real also calculates the correct precision now. Also made the types used in floating-point math more consistent in a few places. |
||
---|---|---|
.. | ||
doc_classes | ||
editor | ||
icons | ||
language_server | ||
tests | ||
config.py | ||
gdscript.cpp | ||
gdscript.h | ||
gdscript_analyzer.cpp | ||
gdscript_analyzer.h | ||
gdscript_byte_codegen.cpp | ||
gdscript_byte_codegen.h | ||
gdscript_cache.cpp | ||
gdscript_cache.h | ||
gdscript_codegen.h | ||
gdscript_compiler.cpp | ||
gdscript_compiler.h | ||
gdscript_disassembler.cpp | ||
gdscript_editor.cpp | ||
gdscript_function.cpp | ||
gdscript_function.h | ||
gdscript_lambda_callable.cpp | ||
gdscript_lambda_callable.h | ||
gdscript_parser.cpp | ||
gdscript_parser.h | ||
gdscript_tokenizer.cpp | ||
gdscript_tokenizer.h | ||
gdscript_utility_functions.cpp | ||
gdscript_utility_functions.h | ||
gdscript_vm.cpp | ||
gdscript_warning.cpp | ||
gdscript_warning.h | ||
register_types.cpp | ||
register_types.h | ||
SCsub |