mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
String: Add contains().
This commit is contained in:
parent
bf12719cca
commit
adbe948bda
57 changed files with 142 additions and 119 deletions
|
@ -182,7 +182,7 @@ static String _mkid(const String &p_id) {
|
|||
|
||||
static String f2sp0(float p_float) {
|
||||
String num = rtoss(p_float);
|
||||
if (num.find(".") == -1 && num.find("e") == -1) {
|
||||
if (!num.contains(".") && !num.contains("e")) {
|
||||
num += ".0";
|
||||
}
|
||||
return num;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue