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 Highlight control flow keywords with a different color 2021-05-05 22:38:12 +02:00
icons
language_server Merge pull request #47776 from Razoric480/foreport 2021-05-06 20:46:18 +02:00
tests Merge pull request #49114 from vnen/gdscript-fix-self-function-type-check 2021-05-26 20:59:17 +02:00
config.py
gdscript.cpp Rename File::get_len() get_length() 2021-05-25 11:54:28 +01:00
gdscript.h Highlight control flow keywords with a different color 2021-05-05 22:38:12 +02:00
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: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
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: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
gdscript_disassembler.cpp Fix typos with codespell 2021-05-20 12:38:56 +02:00
gdscript_editor.cpp Change behavior of String.right 2021-05-20 23:07:57 +02:00
gdscript_function.cpp GDScript: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
gdscript_function.h Merge pull request #48793 from vnen/gdscript-fix-temp-type-adjust 2021-05-17 17:34:19 +02:00
gdscript_lambda_callable.cpp GDScript: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
gdscript_lambda_callable.h GDScript: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
gdscript_parser.cpp Fix typos with codespell 2021-05-20 12:38:56 +02:00
gdscript_parser.h GDScript: Use analyzer data to decide assignment conversion 2021-05-26 14:09:00 -03:00
gdscript_tokenizer.cpp Merge pull request #46714 from HaSa1002/fix-gdscript-underscore-strict 2021-05-06 20:19:45 +02:00
gdscript_tokenizer.h GDScript: Add lambda syntax parsing 2021-04-28 10:56:16 -03:00
gdscript_utility_functions.cpp
gdscript_utility_functions.h
gdscript_vm.cpp Fix typos with codespell 2021-05-20 12:38:56 +02:00
gdscript_warning.cpp
gdscript_warning.h
register_types.cpp
register_types.h
SCsub