A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw70/CLHS/Body/f_float.htm below:

CLHS: Function FLOAT

Function FLOAT

Syntax:

float number &optional prototype => float

Arguments and Values:

number---a real.

prototype---a float.

float---a float.

Description:

float converts a real number to a float.

If a prototype is supplied, a float is returned that is mathematically equal to number but has the same format as prototype.

If prototype is not supplied, then if the number is already a float, it is returned; otherwise, a float is returned that is mathematically equal to number but is a single float.

Examples:

 (float 0) =>  0.0
 (float 1 .5) =>  1.0
 (float 1.0) =>  1.0
 (float 1/2) =>  0.5
=>  1.0d0
OR=>  1.0
 (eql (float 1.0 1.0d0) 1.0d0) =>  true

Side Effects: None.

Affected By: None.

Exceptional Situations: None.

See Also:

coerce

Notes: None.

The following X3J13 cleanup issue, not part of the specification, applies to this section:
Copyright 1996-2005, LispWorks Ltd. All rights reserved.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4