godot/modules/gdscript
Heikki Simojoki 09a905ca80
Increase String::num default decimal precision
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.
2021-05-29 11:24:57 -04:00
..
doc_classes Increase String::num default decimal precision 2021-05-29 11:24:57 -04:00
editor
icons
language_server
tests Merge pull request #49114 from vnen/gdscript-fix-self-function-type-check 2021-05-26 20:59:17 +02:00
config.py
gdscript_analyzer.cpp Merge pull request #49114 from vnen/gdscript-fix-self-function-type-check 2021-05-26 20:59:17 +02:00
gdscript_analyzer.h
gdscript_byte_codegen.cpp GDScript: Use analyzer data to decide assignment conversion 2021-05-26 14:09:00 -03:00
gdscript_byte_codegen.h GDScript: Use analyzer data to decide assignment conversion 2021-05-26 14:09:00 -03:00
gdscript_cache.cpp Rename File::get_len() get_length() 2021-05-25 11:54:28 +01:00
gdscript_cache.h
gdscript_codegen.h GDScript: Use analyzer data to decide assignment conversion 2021-05-26 14:09:00 -03:00
gdscript_compiler.cpp GDScript: Use analyzer data to decide assignment conversion 2021-05-26 14:09:00 -03:00
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: Use analyzer data to decide assignment conversion 2021-05-26 14:09:00 -03:00
gdscript_tokenizer.cpp
gdscript_tokenizer.h
gdscript_utility_functions.cpp
gdscript_utility_functions.h
gdscript_vm.cpp
gdscript_warning.cpp
gdscript_warning.h
gdscript.cpp Rename File::get_len() get_length() 2021-05-25 11:54:28 +01:00
gdscript.h
register_types.cpp
register_types.h
SCsub