Real number always sperate thousand when use strfmt function

Dear everybody,

I have a problem with a real number.

For example: myreal = 1234.567

When i use str = strfmt(“insert into table(number) values(%1)”, myreal) => it’s always 1,234.567

I also try to convert before insert statement myreal = any2Real(1234.567) => but still not solve the problem.

Please give me advice on this case how to keep the original number.

Thank you very much.



I have solved the problem with function num2str().

Thank you.

You don’t want “**to keep the original number”. You want to convert the number to string using a particular format.