---
layout: doc
title: numbers / to_float
---
# to_float

### NAME

    to_float - convert an int to a float

### SYNOPSIS

    float to_float( int i );

### DESCRIPTION

    The  to_float() call returns the number of type 'float' that is equiva‐
    lent to the int 'i'.

### SEE ALSO

    to_int(3), read_buffer(3), sprintf(3), sscanf(3)

