Phantom Documentation

[Help Home] [Phantom Home]
int

int int(real)

Return Type: int
Parameters: real input

Description:
This function converts a real (floating point) number to an integer. The digits after the decimal are removed.

Example Code
1 >>real r = 4.9;
2 >>disp(int(r));
4


 


Copyright 2000-2011 Phantom Automated Solutions