A strange format and value ???

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

totalAMOUNT
[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 !!
Olivier

Hi @Olivier-Denis,
See here for several ways to fix this behavior of defaulting to scientific notation in R markdown output:
https://stackoverflow.com/questions/48931389/render-pdf-document-with-the-inline-r-code-output-number-more-than-5-digits

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

HTH

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.

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:

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...
Cheers,
Olivier-Denis