### The Maxima on-line user's manual

Algebra Calculator

#### Keepfloat

-- Option variable: keepfloat Default value: `false`

When `keepfloat` is `true`, prevents floating point numbers from being rationalized when expressions which contain them are converted to canonical rational expression (CRE) form.

Note that the function `solve` and those functions calling it (`eigenvalues`, for example) currently ignore this flag, converting floating point numbers anyway.

Examples:

`          (%i1) rat(x/2.0);`

`rat` replaced 0.5 by 1/2 = 0.5 x

`          (%o1)/R/                               -`
`                                                 2`
`          (%i2) rat(x/2.0), keepfloat;`

`          (%o2)/R/                             0.5 x`

`solve` ignores `keepfloat`:

`          (%i3) solve(1.0-x,x), keepfloat;`

```          `rat` replaced 1.0 by 1/1 = 1.0
(%o3)                               [x = 1]```

```(%o1)                                true
(%i2) ```

### Related Examples

? keepfloat;

Calculate

##### keepfloat-linsolve

eq1: 5*x + 1920.7229*...

eq2: 1920.7229*x + 73...

eq3: 738907.9375*x + ...

Calculate

? keepfloat;

Calculate

##### keepfloat-linsolve

?keepfloat;

eq1:-cx-81+bxi=0;

eq2:cz+28+45-bzi=0;

Calculate

? keepfloat;

Calculate

##### keepfloat-linsolve

eq1: 5*x + 1920.7229*...

eq2: 1920.7229*x + 73...

eq3: 738907.9375*x + ...

Calculate

##### keepfloat-linsolve

? keepfloat;

eq1:-cx-81+bxi=0;

eq2:cz+28+45-bzi=0;

Calculate

##### keepfloat-solve-true

keepfloat:true;

float(solve (x=0.1734...

Calculate

##### keepfloat-linsolve

eq1: 5*x + 1920.7229*...

eq2: 1920.7229*x + 73...

eq3: 738907.9375*x + ...

Calculate

##### keepfloat-solve-true

keepfloat:true;

float(solve (x=0.1734...

Calculate