question

Maksim B avatar image
0 Likes"
Maksim B asked Mischa Spelt answered

double/float to string

How can I convert double to string, like numtostring() function?

FlexSim 20.0.0
flexsim 20.0.0stringdoubleto
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Mischa Spelt avatar image
1 Like"
Mischa Spelt answered

You can use the static function string.fromNum:

double x = 3.14159;
return string.fromNum(x);
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.