Avatar
これは10進数で見栄えを良くするために内部の2進数表現より遠い値に寄せる実装だから、シリアライズのライブラリだと微妙そう
11:21 AM
あれ?SwiftDtoaのほうが桁が多く出る?
11:23 AM
  • SR-106: New floating-point description implementation This replaces the current implementation of description and
debugDescription for the standard floating-point types with a new form...
11:23 AM
* Always Accurate. Converting the decimal form back to binary (using an accurate algorithm such as Clinger's) will always yield exactly the original binary value. For the IEEE 754 formats, the round-trip will produce exactly the same bit pattern in memory. This is an essential requirement for JSON serialization, debugging, and logging.
11:24 AM
むしろAccurateなのか。誤解してそう。