Editor is reformatting floating point values from e.g. 1.1F to 1.10000002F

  • Thread starter Andreas =?ISO-8859-1?Q?M=FCller?=
  • Start date
A

Andreas =?ISO-8859-1?Q?M=FCller?=

Hi All,

this starange behavior started a few days ago. Before that this never
was a problem

Besides that this is pretty annyoying, in my application this produces
bugs, because my tolerance is 1E-10.

So does anyone know a way is there a way to turn this of again (without
turning of the whole pretty code formatting) ?

Thanks in advance,
Andy
 
A

Armin Zingler

Andreas Müller said:
this starange behavior started a few days ago. Before that this never
was a problem

Besides that this is pretty annyoying, in my application this
produces bugs, because my tolerance is 1E-10.

So does anyone know a way is there a way to turn this of again
(without turning of the whole pretty code formatting) ?

I don't have a solution, sorry, but I'm glad to hear that I am not the only
one noticing this behavior. Unfortunatelly, it's rarely reproducable. The
only thing that helped was closing the solution (or even the IDE (I don't
remember)), open the solution again and use Ctrl+K, Ctrl+D (that's the
default combination, maybe yours is different) to auto-format the document
again. This changed the declarations back to 1.1F (as in your example).
 
A

Andreas =?ISO-8859-1?Q?M=FCller?=

Herfried K. Wagner said:
Hello,



Do you use intelligent code formatting?
Thats a catch 22, isn't it?. No, seriosly, I suppose you refer to the
pretty listing feature, which is turned on turned on and actually works
as expected, except on some specific files
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top