is_float

Summary

Returns true if the target variable is a float.

Usage

$input|is_float( test )

Parameters

NameTypeDescriptionRequired
test any Variable to test. only if input is omitted

Returns

true of false, see description for details.

Description

This operator simply checks if a variable contains a float or not. The operator returns true if the input or the first parameter is a float. If both input and parameter are supplied, it is the parameter that will be evaluated.

Examples

{let my_variable=256 your_variable=13.5}

{$your_variable|is_float( $my_variabe )}

{/let}

The example above returns false.

{let my_variable=256 your_variable=13.5}

{$my_variable|is_float( $your_variabe )}

{/let}

The example above returns true.

Comments

log in or create a user account to comment.

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
    Data extraction
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
    URLs
    Variables
       float
       get_class
       get_type
       count
       int
       is_array
       is_boolean
       is_class
       is_float
       is_integer
       is_null
       is_numeric
       is_object
       is_set
       is_string
       is_unset
Template functions
Data fetching
Modules
XML tags


Created

05/02/2004
1:34:09 pm
by Balazs Halasy

Last updated

06/02/2004
4:21:37 pm
by Balazs Halasy

Authors

Balazs Halasy



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.