B4X FEED 0.0344827586206896551724137931 = 1/29

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: 0.0344827586206896551724137931 = 1\/29 است. این موضوع تا کنون 81 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع 0.0344827586206896551724137931 = 1\/29
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
81
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,517
4,383
If the title of
برای دیدن تصاویر باید ثبت نام کنید

this snippet in any way intrigues you then here is the routine which did that conversion
.
You are, however, warned that however intriguing it might be it is all but totally useless .....

Conversion of decimal numbers to neat integer fractions is something you may have learned at school. The basic process is easy. Given 3.65 we just push the dot two places to the right, which means multiplying by 100, then use a divisor (denominator) of 100 and, voila, we have 365/100. We can see, however, that both numerator and denominator are divisible by 5 so the result can be simplified to 73/20.

But what if the number is a never-ending recurring decimal like 0.66666666... ? There's a well-known way to manage that (look at which explains and illustrates it) but it doesn't work properly for non-terminating numbers that do not have a recurring part...



 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا