# Write algorithms and draw a corresponding flow chart to convert a decimal number to binary equiavalent?

### How can you tell if a decimal is repeating or terminating?

That depends how the decimal is defined. If you have a fraction, and convert it to a decimal: * If the fraction, in simplest terms, only has the prime factors 2 and 5 in its denominator, the corresponding decimal number is terminating. This is related to the fact that 2 and 5 are the factors of 10 (the base of our decimal system). For example, a denominator of 2, 4, 5, 8, 10, 16, 32…

### How do you turn a decimal in to a percent but what if the number has a bar above it?

The bar is usually taken to mean that the corresponding digit or digits repeat indefinitely. That doesn't affect how you convert decimal to percentage - you multiply by 100. For example, 0.1342 (with a bar over 42) would become 13.42 (also with a bar over 42). As you can see, you simply move the decimal point to positions to the right.