FUNCTION::FP\_TO\_LONG(3stap) Floating point processing Taps FUNCTION::FP\_TO\_LONG(3stap)

# [NAME](#NAME)

function::fp\_to\_long - Convert fp to int64

# [SYNOPSIS](#SYNOPSIS)

```


    fp_to_long:long(infp:long,roundingMode:long,exact:long)
```

# [ARGUMENTS](#ARGUMENTS)

*infp*

the 64 bit floating point stored in long

*roundingMode*

through 0-6, which are round to nearest even, minMag, min, max, near maxMag and round to odd

*exact*

the boolean value, if exact is 1 than raising inexact exception, otherwise ignore the exception.

# [DESCRIPTION](#DESCRIPTION)

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.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::floatingpoint*(3stap)](/man/enterprise-packages/systemtap/tapset::floatingpoint.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::fp_to_long(3stap) from systemtap 5.6-r0 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
