PINE LIBRARY
Updated

libcompress

696
Library "libcompress"
numbers compressor for large output data compression

compress_fp24()
  converts float to base64 (4 chars) | 24 bits: 1 sign + 5 exponent + 18 mantissa
  Returns: 4-character base64_1/5/18 representation of x

compress_ufp18()
  converts unsigned float to base64 (3 chars) | 18 bits: 5 exponent + 13 mantissa
  Returns: 3-character base64_0/5/13 representation of x

compress_int()
  converts int to base64
Release Notes
v2

Bug fixes
Release Notes
v3

Major logic fixes

Added:
base64_tointstr()
  converts base64 to int string

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.