Double_t precision lost in TString Form

Good Morning Rooters!

the precision seems to be lost in the TString formatting. Do you know how to get the full number as a string? Here is an example:

[code]root [0] Double_t val = 1.96966568786000011e+2

root [1] val
(Double_t)1.96966568786000011e+02

root [2] Form(“Val = %g”, val)
(char* 0x10ef7e4a8)“Val = 196.967”

root [3] Form(“Val = %f”, val)
(char* 0x10ef7e4b6)“Val = 196.966569”[/code]

thanks!
:mrgreen:

oops #-o . Sorry for this question and thanks for the PM. it was of course

Form("Val = %.12g", val)

many thanks!
=D>