tests whether the argument is a floating-point number....
Move to
Next Prev
Up Top
See also
atom/1
atomic/1
compound/1
float/1
integer/1
nonvar/1
number/1
var/1
IF Computer > MINERVA > Manual > Reference > Predicates > Type testing > float/1

float/1

tests whether the argument is a floating-point number.

float(+Term)

float/1 succeeds if Term is a floating-point number otherwise it fails.

Arguments

Term                   term

Examples

float(7.11). Succeeds.
X=4.3*2, float(X). Succeeds.
float(4.3*2). Fails.
float(7). Fails.

Standard

This predicate is part of the ISO-Prolog Standard.

See also

atom/1, atomic/1, compound/1, integer/1, nonvar/1, number/1, var/1,

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Language
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/type_test/float/home_en.html
published 2008/7/7 update 1998/8/7 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS