- var cstr = new CString(size+1)
- to_precision_fill(decimals, size+1, cstr)
- return cstr.to_s_unsafe(byte_length=size, copy=false)
+ var cstr = new CString(size + 1)
+ to_precision_fill(decimals, size + 1, cstr)
+ return cstr.to_s_unsafe(byte_length = size, copy = false)
+ end
+
+ # Returns the hexadecimal (`String`) representation of `self` in exponential notation
+ #
+ # ~~~
+ # assert 12.345.to_hexa_exponential_notation == "0x1.8b0a3d70a3d71p+3"
+ # assert 12.345.to_hexa_exponential_notation.to_f == 12.345
+ # ~~~
+ fun to_hexa_exponential_notation: String
+ do
+ var size = to_precision_size_hexa
+ var cstr = new CString(size + 1)
+ to_precision_fill_hexa(size + 1, cstr)
+ return cstr.to_s_unsafe(byte_length = size, copy = false)