I need to use a field of type numeric(11,9) in mysql. I’m using C api so which data type I should use. I used long so it gives result like these:
12.123456789 to 12.123457000
I don’t want to lose precision. I think I should use long double – but what specifier (%_) should I use? For long it’s %f, but what it’s for long double?
whenever you have less than 9 digits after the decimal, it will be filled with zeroes.