Main Content

int64

Convert fi object to signed 64-bit integer

Syntax

c = int64(a)

Description

c = int64(a) returns the built-in int64 value of fi object a, based on its real world value. If necessary, the data is rounded-to-nearest and saturated to fit into an int64.

Examples

This example shows the int64 values of a fi object.

a = fi([-pi 0.1 pi],1,64);
c = int64(a)

c =

   -3    0    3

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2008b