Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Functions

floor

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Rounds the input to the nearest integer less than or equal to itself.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

out = floor(X);

Returns the nearest integer less than or equal to X.

 

Example

Find the nearest integer greater than or equal to 1.41:

?floor(1.41);

result: 

1  

 

See Also

Functions, ceil, mod

Copyright Lumerical Inc. | Privacy | Site Map