docs icon indicating copy to clipboard operation
docs copied to clipboard

float `to` binary conversion needs improvement

Open greggirwin opened this issue 7 years ago • 0 comments

See: https://gitter.im/red/docs?at=5cfe6e31e41fe15e7544d0ae

My suggestions:

The any-list part could remove some prose.

An any-list! value must contain two numbers. The result will be the first number multiplied with the value of 10 to the power of the truncated second number. first-number * (power 10 second-number)

Could be

An any-list! value must contain two numbers. The result will be first-number * (10 ** second-number)

The binary example is backwards from the text. It described to float!. And your new text seems better. Beyond that, an example of what happens with truncated data (less than 8 bytes) should either be included, or we should say that's not supported.

greggirwin avatar Jun 10 '19 18:06 greggirwin