Hide Table of Contents

AINT

The AINT(a) function returns the closest integer less than or equal to the magnitude of the value of the expression a, as long as the value of the expression a is a positive integer. Otherwise, AINT returns zero.

AINT(a) = 0 if ABS(a)< 1

AINT(a) = int(a) if ABS(a) ≥ 1

The value of the mathematical function int of a variable x is equal to x if x is an integer. If x is not an integer, then int(x) is equal to the nearest integer to x whose magnitude is not greater than the magnitude of x. Thus int(-7.0) = -7, int(-4.8) = -4, and int(4.8) = 4.

Format

AINT(a)

Arguments

a Any valid function expression.
  Number of Arguments: 1

Cautions

AINT is not a differentiable function. Be careful when using this function in an expression that defines a force or motion input to the system.

Examples

AINT(-6.5) = 0

AINT(4.6) = 4



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   AINT
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: SOLIDWORKS 2016 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.