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

Algebra Calculator

#### Bftorat

-- Option variable: bftorat Default value: false

bftorat controls the conversion of bfloats to rational numbers. When bftorat is false, ratepsilon will be used to control the conversion (this results in relatively small rational numbers). When bftorat is true, the rational number generated will accurately represent the bfloat.

(%o1)                                true
(%i2)

### Related Examples

##### bftorat-linsolve-true

bftorat:true;

x1:18213.2121230344;

y1:2517.3465788273;

Calculate

##### bftorat-block-false-float2bf-fpprec-if-integerp-kill-mod-ratdenom-ratepsilon-ratprint-return

kill(lastdigits,pidig...

ratprint:false;

pidigits(prec):=block...

Calculate

##### bftorat-block-cons-delete-do-emptyp-first-float2bf-fpprec-lambda-last-listp-map-mod-ratepsilon-ratprint-rest-return

pidigits(prec):=block...

intervals(items, [gra...

map(lambda([x], delet...

Calculate

##### bftorat-block-delete-float-if-integerp-mod-rat-ratdenom-ratepsilon-ratprint

delete(%pi, [0, 3.141...

lastdigits(fnum, last...

lastdigits(1.1459, 3);

Calculate

##### bftorat-block-emptyp-first-float-fpprec-if-integerp-mod-not-numer-ratepsilon-ratprint-return

multipi(n, [fprec]):=...

multipi(3, 1), numer;

multipi(3.1, 0.1), nu...

Calculate

##### bftorat-block-cons-delete-emptyp-false-first-float2bf-fpprec-if-integerp-kill-lambda-listp-map-mod-ratdenom-ratepsilon-ratprint-rest-return

kill(lastdigits,pidig...

ratprint:false;

pidigits(prec):=block...

Calculate

##### bftorat-block-emptyp-equal-first-float-fpprec-if-is-mod-not-numer-ratepsilon-ratprint-return-round

multipi(n, [fprec]):=...

multipi(3, 1), numer;

multipi(3.1, 0.1), nu...

Calculate

##### bftorat-block-cons-delete-do-emptyp-first-float2bf-fpprec-lambda-last-listp-map-maplist-mod-ratepsilon-ratprint-rest-return-second

pidigits(prec):=block...

intervals(items, [gra...

map(lambda([x], delet...

Calculate

##### bftorat-block-delete-float-if-integerp-mod-rat-ratdenom-ratepsilon-ratprint

delete(%pi, [0, 3.141...

lastdigits(fnum, last...

lastdigits(3.1459, 1);

Calculate

##### bftorat-block-delete-ev-false-float-if-integerp-mod-ratdenom-ratepsilon-ratprint

delete(%pi, [0, 3.141...

ratprint:false;

lastdigits(fnum, last...

Calculate