Advice 1: How to translate a number in binary code

The binary number system is used in programming languages. Binary code is a positional system where any number, including fractions, can be written using the digits 0 and 1.
How to translate a number in binary code
Instruction
1
Translate common decimal number into binary number system by using common software tools the Microsoft Windows operating system. To do this, click "start" on your computer, click "All programs", select the folder "Standard" and look at the Calculator app. In the top menu of the calculator, click "View" and then "Programmer". Form calculator converted.
2
Now enter the number to transfer. In a special window under the input field you will see the result of translation of a number in binary code. For example, after entering the number 216 you will get the result 1101 1000.
3
There are special applications for smartphones, such as, for example, RealCalc for Android operating system. This free program from the Android Market is also able to translate decimal numbers to binary numbers.
4
If you don't have a computer or smartphone, you can try to translate the number written in Arabic numbers, in binary code. It is necessary to divide the number by 2 until, until the last remnant or the result reaches zero. It looks like (for example, number 19):

19 : 2 = 9 remainder 1
9 : 2 = 4 remainder 1
4 : 2 = 2 remainder 0
2 : 2 = 1 remainder 0
1 : 2 = 0 – is achieved 1 (dividend is less than divisor)

Write the remainder in the opposite direction – from most recent to the oldest. You will get the result 10011 is the number 19 in binary notation.
5
For transfer of fractional decimal numbers in binary system first you need to transfer the integer part of fractional numbers in binary notation, as shown in the example above. Then you need the fractional part of the usual number of times the base of the binary number system. In result of works it is necessary to allocate a part of – it takes the value of the first bit of the number in the binary system of the decimal point. The finale of the algorithm occurs when the fractional part of the works becomes zero, or if the desired accuracy of calculations.

Advice 2: How to translate decimal numbers in the fractional

Some non-integer number can be written in decimal form. In this case, the decimal point separating the integer part of the number, is a number of figures in the non-integer part of the number. In different cases, it is convenient to use either decimal numbersor fractional numbers. Decimal number can be converted into decimal.
How to translate decimal numbers in the fractional
You will need
  • the ability to reduce fractions
Instruction
1
If the denominator is 10, 100, or, in General, 10^n, where n is a natural number, then this fraction can be written as a decimal. The number of digits after the decimal point defines the denominator of such fraction. It is equal to 10^n, where n is the number of characters. So, for example, 0.3 mm can be written as 3/10, or 0.19 as 19/100, etc.
2
In some cases the resulting fraction can be reduced. For example, 0,5 = 5/10. Use the rules of reduction of fractions and divide the numerator and the denominator by the common factor of these numbers is 5. As a result, you will receive: 0,5 = 5/10 = 1/2.
3
Suppose now that the integer part of a decimal number not equal to zero. Then this number can be translated either into an improper fraction, where the numerator more than the denominator, or a mixed number. For example: 1,7 = 1+(7/10) = 17/10, 2,29 = 2+(29/100) = 229/100.
4
If at the end of a decimal fraction is one or more zeros, these zeros can be discarded, and transfer the number with the remaining number of decimal places in the fractional. Example: 1,7300 = 1,73 = 173/100.

Advice 3: Programming languages for Android

The main part of software for Android is written in the programming language (PL) Java. System developers also offer programmers a framework for designing applications in C/C++, Python, and Java Script using jQuery and PhoneGap.
Programming languages for Android

Java for Android



The main language for programming on Android is Java. To create the layout of apps and widgets that use the markup language XML. To write programs for Android in Java can be virtually any software environment, but the developers of the operating system recommend programmers to use Eclipse. The functionality of the compiler enabled the creation of mobile applications using the Android Development Tools plugin (ADT). A similar plugin is available for these popular environments like NetBeans and IntelliJ IDEA. In addition, to writing code in Java can be used package Motodev Studio for Android, created based on Eclipse and allows to program directly from the Google SDK.

C/C++



To write some programs and code segments that require maximum speed, can be used by C/C++ library. The use of these JAPANESE is possible through a special package for developers Android Native Development Kit, geared specifically for creating applications using C++.

The package Embarcadero RAD Studio XE5 also allows you to write native apps for Android. At the same time to test the program enough one Android device or installed on a computer emulator. The developer also offered the opportunity to write in C/C++ low-level modules by using some standard libraries on Linux and developed for the Android Bionic library.

In addition to C/C++, programmers have the ability to use C#, proceeds of which will be useful when writing native programs for the platform. Work on C# Android is possible via the interface Mono or Monotouch. However, the initial license application C# programmer will cost $400, which is relevant only when writing large software products.

PhoneGap



PhoneGap provides the ability to develop apps using languages such as HTML, JavaScript (jQuery) and CSS. The programs created on this platform is suitable for other operating systems and can be modified for other devices as well without any additional changes in program code. With the use of PhoneGap app developers on Android can do JavaScript code and HTML with CSS as a means for creating markup.

The solution SL4A allows you to use in the writing and scripting languages. Using the environment planned PL such as Python, Perl, Lua, BeanShell, JRuby, etc. However, the number of developers who currently use SL4A to your programs, small and the project is still in alpha testing.
Search
Is the advice useful?