X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwriter.h;h=c8d75e32dcd643bb09e3ec281331800691c99e02;hb=19179a622c1de88de5ed7047643eec79f285bf2a;hp=159bf9552f2ca68c80f740c4f88b222b7a736dd1;hpb=e0af585ed57bdb5b1ea4f4a415fda13b5d99d2dc;p=libs%2Fdatafile.git diff --git a/source/writer.h b/source/writer.h index 159bf95..c8d75e3 100644 --- a/source/writer.h +++ b/source/writer.h @@ -38,6 +38,11 @@ public: @param b true for binary mode, false for text */ void set_binary(bool b); + + /** Sets the precision of floating point numbers in bits. Depending on the + mode not all values may be valid, but any value between 16 and 64 that is + divisible by 8 is guaranteed to work. */ + void set_float_precision(unsigned); }; } // namespace DataFile