godot/core/string
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
..
node_path.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
node_path.h NodePath: Remove unimplemented get_parent() method 2021-04-23 12:37:53 +02:00
optimized_translation.cpp Check PHashTranslation generate p_from is valid 2021-05-03 20:40:21 +05:00
optimized_translation.h Rename PHashTranslation to OptimizedTranslation 2021-03-20 10:02:47 +00:00
print_string.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
print_string.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
SCsub Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
string_buffer.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
string_builder.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
string_builder.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
string_name.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
string_name.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
translation_po.cpp Remove uses of auto for better readability and online code reviews 2021-04-26 14:59:28 +02:00
translation_po.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
translation.cpp Remove uses of auto for better readability and online code reviews 2021-04-26 14:59:28 +02:00
translation.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
ucaps.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
ustring.cpp Increase String::num default decimal precision 2021-05-29 11:24:57 -04:00
ustring.h [Net] Implement String::parse_url for parsing URLs. 2021-04-26 09:55:24 +02:00