---
name: "function::fp_to_string"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::fp_to_string"
---

# function::fp\_to\_string(3stap)

Convert 64 bit floating point to string

## NAME

function::fp\_to\_string - Convert 64 bit floating point to string

## SYNOPSIS

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

## ARGUMENTS

*infp*

the 64 bit floating point stored in long

*precision*

number of digits after decimal point

## 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

[*tapset::floatingpoint*(3stap)](/tapset::floatingpoint/3stap.md)
