:Disp " ":Input "PAIR 1: ",T:Input "PAIR 2: ",U:((LU(2)-LT(2))/(LU(1)-LT(2)))->M:Disp "Slope Is: ",M:Input "F>>D? Y/N: ",Str0:If Str0="Y":(M>FD)->O:Disp OWhen I operation this, I gain ERROR: SYNTAX ~ above the conversion action (the actual slope calculation completes successfully.)

**Some of the password I"ve typed above is not exactly how it appears in the TI 84, however it"s the best I have the right to do with a QWERTY keyboard.

### ►Frac and ►F◄►D are display tokens, no conversion tokens

TI calculators deserve to only store numbers one way: in your proprietary floating-point format. This means that numbers cannot be "converted" from fraction to decimal or angry versa, just*displayed*together fractions or decimals. Thus, storing to anything (e.g. 3►F◄►D→X) will certainly throw a syntax error.

You are watching: How to convert a decimal to a fraction on a ti-83 plus

Display settings are adjusted using the Auto/Dec/Frac tokens in the setting menu; ►Frac overrides the mode and displays together a portion approximation, ►Dec displays as decimal, and also ►F◄►D tells the calculator to display in the opposite screen mode indigenous its present setting.

Quoting from this page:

►Frac do the efforts to display screen the input in portion form. It only works ~ above the home screen outside a program, or through the Disp and Pause regulates in a program.

The problem is in the heat

(M>FD)->ODisp OThere"s no factor to style it this means when it have the right to simply be expressed as

Disp M>FDwhich calculates properly.

One means to transform from decimal to a portion is to usage the Euclidean Algorithm. Here it is in ti-basic

:Ans→X:{1,abs(Ans:Repeat E‾9>Ans(2:abs(Ans(2){1,fPart(Ans(1)/Ans(2:End:round(X,1/Ans(1),0:Ans/gcd(Ans(1),Ans(2Ans is the decimal you wish to convertand E‾9 is the very same as 10^(-9)

Thanks for contributing response to ridge Overflow!

Please be sure to*answer the question*. Provide details and also share her research!

But *avoid* …

See more: How Many Cm Is A Grapefruit In Cm? Definition Of Centimeter

To find out more, see our advice on writing good answers.

write-up Your prize Discard

By clicking “Post your Answer”, girlfriend agree to our terms of service, privacy policy and cookie policy

## Not the price you're feather for? Browse other questions tagged ti-basic or questioning your own question.

site architecture / logo © 2021 ridge Exchange Inc; user contributions licensed under cc by-sa. Rev2021.9.21.40262

her privacy

By click “Accept all cookies”, you agree stack Exchange can store cookies on your device and disclose info in accordance v our Cookie Policy.