# `NEXT` — `NUM$`

## Contents

- `NEXT` — Positions to the next record
- `NUM$` — Converts a floating point number to a string

## `NEXT` — Positions to the next record

Usage: `NEXT`

Positions to the next record in the current data file.

If `NEXT` is used after the end of a file has been reached, no error is reported but the current record is null and the `EOF` function returns true.

## `NUM$` — Converts a floating point number to a string

Usage: `n$=NUM$(x,y%)`

Returns a string representation of the integer part of the floating-point number `x`, rounded to the nearest whole number. The string will be up to `y%` characters wide.

- If `y%` is negative then the string is right-justified for example `NUM$(1.9,-3)` returns " `2`" where there are two spaces to the left of the `2`.
- If `y%` is positive no spaces are added: e.g. `NUM$(-3.7,3)` returns "`-4`".
- If the string returned to `n$` will not fit in the width `y%`, then the string will just be asterisks; for example `NUM$(256.99,2)` returns "`**`".

See also `FIX$`, `GEN$`, `SCI$`.