Seer logo - advanced backtesting for stock, futures and forex trading systems using using technical analysis indicators, charts, money management and position sizing
Functions by Category Functions by Alphabetical list

int([Value])

Usable in an seer event objectUsable in an seer indicator objectUsable in an seer chart object

Returns the integer portion of [Value]. You should not use this function for rounding: one because it truncates towards 0, and two because machine representations of floating point numbers can sometimes produce counterintuitive results.

For example, int(-6.725/0.025) produces -268 rather than the correct -269; that's because it's really more like -268.99999999999994315658 instead. If you want to round a value, use the Seerscript function Round.

Related functions:

log , cos , exp , abs , sqrt , sin , atan2 , ceil , floor , log10 , IsNull , IsEqual , NVL , MinValue , MaxValue , Min , Max , Sum , Cum , Round , RoundToQuarter , RoundToTickSize

© 2011 seer trading systems ltd
feedback FAQ legal privacy