Navigation

Operators and Keywords

Function List:

C++ API

lo-utils.cc File Reference

#include <cctype>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <limits>
#include <string>
#include "lo-error.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "lo-utils.h"

Include dependency graph for lo-utils.cc:


Functions

octave_idx_type NINTbig (double x)
octave_idx_type NINTbig (float x)
int if(x > std::numeric_limits
< int >::max()) return std
else if(x< std::numeric_limits
< int >::min()) return std
else return 
static_cast< int > ((x > 0)?(x+0.5):(x-0.5))

Function Documentation

octave_idx_type NINTbig ( float  x  ) 

octave_idx_type NINTbig ( double  x  ) 

int if (x > std::numeric_limits<int>::max ()) return std else if (x < std::numeric_limits<int>::min ()) return std else return static_cast< int > ( (x > 0)?(x+0.5):(x-0.5)   )