DOKK / manpages / debian 11 / systemtap-doc / function::fp_to_string.3stap.en
FUNCTION::FP_TO_STRI(3stap) Floating point processing Taps FUNCTION::FP_TO_STRI(3stap)

function::fp_to_string - Convert 64 bit floating point to string


fp_to_string:string(infp:long,precision:long)

infp

the 64 bit floating point stored in long

precision

number of digits after decimal point

Given a 64 bit floating point, which is stored in long, use the long value to initiate self-defined float64_t type, then apply the f64_to_i64 function to get the string representation.

tapset::floatingpoint(3stap)

November 2020 SystemTap Tapset Reference