HP Forums
Question about string conversion shortcut... - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Question about string conversion shortcut... (/thread-9314.html)



Question about string conversion shortcut... - webmasterpdx - 10-17-2017 03:09 AM

I've seen programs use the following:

T:=""+V;

instead of:

T:=STRING(V);

to convert V to a string from a numerical value inside a program.

The first version seems to work. I'm wondering, is it faster than the latter? Anyone know?
Thanks
-Donald


RE: Question about string conversion shortcut... - cyrille de brébisson - 10-17-2017 05:24 AM

Hello,

The STRING() version will be faster and take less RAM.

Cyrille


RE: Question about string conversion shortcut... - webmasterpdx - 10-17-2017 08:19 AM

Thanks....good to know.