Talk:Write float arrays to a text file: Difference between revisions

No edit summary
 
(One intermediate revision by one other user not shown)
Line 1:
== Precision vs decimal places ==
The majority of the code samples seem to assume precision means number of digits after the decimal point. The task description isn't super clear about this, but it becomes clear when you look at the example output in the task description. Should "incorrect" tags be added to most of the examples?
 
== Redundant? ==
Is this already covered in [[File I/O]]? It doesn't seem to add anything extra. --[[User:Mwn3d|Mwn3d]] 23:10, 23 December 2007 (MST)
: Agreed. Unless serialization deserves its own category, this task is somewhat superfluous. Even if serialization did get its own category, there are better ways to tackle the subject thoroughly. (And, admittedly, I wouldn't mind seeing the subject tackled, with cross-platform file compatibility being just one interesting aspect.) --[[User:Short Circuit|Short Circuit]] 01:29, 24 December 2007 (MST)
Line 13 ⟶ 17:
0j2 ": 1.2345678
1.23
 
== Too precise and not precise enough ==
 
I'm not comfortable with the desired output:
 
* What's the separator, space or tab? Should the file be fixed- or free- format? It's not clear by just looking at it.
* On the other hand, it seems silly expect the output will have exactly the same numeric digits. It all depends on the underlying ''sprintf'' or equivalent.
 
I changed the task to leave some freedom on this.
 
[[User:Eoraptor|Eoraptor]] ([[User talk:Eoraptor|talk]]) 15:52, 29 October 2019 (UTC)
1,336

edits