Debian Codegraph @

doc/SystemTap_Tapset_Reference/man3/function::fp_to_long.3stap

raw
1 '\" t
2 .\" Title: function::fp_to_long
3 .\" Author:
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\" Date: October 2025
6 .\" Manual: Floating point processing Tapset
7 .\" Source: SystemTap Tapset Reference
8 .\" Language: English
9 .\"
10 .TH "FUNCTION::FP_TO_LONG" "3stap" "October 2025" "SystemTap Tapset Reference" "Floating point processing Taps"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 function::fp_to_long \- Convert fp to int64
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 fp_to_long:long(infp:long,roundingMode:long,exact:long)
36 .fi
37 .SH "ARGUMENTS"
38 .PP
39 \fIinfp\fR
40 .RS 4
41 the 64 bit floating point stored in long
42 .RE
43 .PP
44 \fIroundingMode\fR
45 .RS 4
46 through 0\-6, which are round to nearest even, minMag, min, max, near maxMag and round to odd
47 .RE
48 .PP
49 \fIexact\fR
50 .RS 4
51 the boolean value, if exact is 1 than raising inexact exception, otherwise ignore the exception\&.
52 .RE
53 .SH "DESCRIPTION"
54 .PP
55 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\&.
56 .SH SEE ALSO\n
57 .IR tapset::floatingpoint (3stap)