A strange format and value ???

Hello everyone !
I'm getting a strange behavior when, in the console, the variable is displayed like this :

[1] 11849.67

and with Rmarkdown : display `r totalAMOUNT`
gives : display 1.19567210^{4}

Where does this difference in format and value come from?
Many thanks in advance for any cue !!

Hi @Olivier-Denis,
See here for several ways to fix this behavior of defaulting to scientific notation in R markdown output:

The apparent change in value of totalAMOUNT is NOT expected - looks like there is a bug elswehere in your code.


Thanks @DavoWW.
As usual, the point is to find the good formulation of the problem, and then find the solution given in the forum and not posting it again...

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.