omdl  v0.6.1
OpenSCAD Mechanical Design Library
datatypes_identify_scalar.scad File Reference

Scalar data type identification. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

function is_defined (v)
 Test if a value is defined. More...
 
function not_defined (v)
 Test if a value is not defined. More...
 
function is_nan (v)
 Test if a numerical value is invalid. More...
 
function is_inf (v)
 Test if a numerical value is infinite. More...
 
function is_scalar (v)
 Test if a value is a single non-iterable value. More...
 
function is_iterable (v)
 Test if a value has multiple parts and is iterable. More...
 
function is_empty (v)
 Test if an iterable value is empty. More...
 
function is_number (v)
 Test if a value is a number. More...
 
function is_integer (v)
 Test if a value is an integer. More...
 
function is_decimal (v)
 Test if a value is a decimal. More...
 
function is_boolean (v)
 Test if a value is a predefined boolean constant. More...
 
function is_string (v)
 Test if a value is a string. More...
 
function is_list (v)
 Test if a value is an iterable list of values. More...
 
function is_range (v)
 Test if a value is a range definition. More...
 
function is_even (v)
 Test if a numerical value is even. More...
 
function is_odd (v)
 Test if a numerical value is odd. More...
 
function is_between (v, l, u)
 Test if a numerical value is between an upper and lower bounds. More...
 

Detailed Description

Scalar data type identification.

Author
Roy Allen Sutton
Date
2015-2017

This file is part of omdl, an OpenSCAD mechanical design library.

The omdl is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

The omdl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the omdl; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA; or see http://www.gnu.org/licenses/.

Definition in file datatypes_identify_scalar.scad.