answersLogoWhite

0

%%

[a-z] printf("%c",yytext[0] - ('a' - 'A'));

%%

User Avatar

Wiki User

∙ 13y ago
User Avatar

What else can I help you with?

Continue Learning about Other Math

What is the binary code for okay?

If it's lower-case, it would be: ok: 0110111101101011 Or, if it's all capital, it would be: OK: 0100111101001011 Or, if it's first capital, then lower-case: Ok: 0100111101101011


How could you print decimal number to bynary nomber in foxpro?

I don't know of any specific function for that; you could write a user-defined function, that converts decimal to binary. In Visual FoxPro 9, transform() with a format code of "@0" will convert to hexadecimal; once you have that, it may be easier to convert each hexadecimal digit into 4 binary digits. I am not sure in what version of Visual FoxPro this option was introduced.A good forum for FoxPro and Visual FoxPro is www.universalthread.com; perhaps you can get additional information there.I don't know of any specific function for that; you could write a user-defined function, that converts decimal to binary. In Visual FoxPro 9, transform() with a format code of "@0" will convert to hexadecimal; once you have that, it may be easier to convert each hexadecimal digit into 4 binary digits. I am not sure in what version of Visual FoxPro this option was introduced.A good forum for FoxPro and Visual FoxPro is www.universalthread.com; perhaps you can get additional information there.I don't know of any specific function for that; you could write a user-defined function, that converts decimal to binary. In Visual FoxPro 9, transform() with a format code of "@0" will convert to hexadecimal; once you have that, it may be easier to convert each hexadecimal digit into 4 binary digits. I am not sure in what version of Visual FoxPro this option was introduced.A good forum for FoxPro and Visual FoxPro is www.universalthread.com; perhaps you can get additional information there.I don't know of any specific function for that; you could write a user-defined function, that converts decimal to binary. In Visual FoxPro 9, transform() with a format code of "@0" will convert to hexadecimal; once you have that, it may be easier to convert each hexadecimal digit into 4 binary digits. I am not sure in what version of Visual FoxPro this option was introduced.A good forum for FoxPro and Visual FoxPro is www.universalthread.com; perhaps you can get additional information there.


What does lb stand for other than pounds?

lb is an abbreviation of the Latin "libra" which means pound. It is also used, amongst other things, for: International letter code for Lebanon (and used as their Top Level Domain) The airline code for Lloyd Aereo Boliviano airline Lattice Boltzmann methods Lower Bound.


How do you change 'hElLo WoRlD' to 'HeLlO wOrLd' in PHP?

The process will work similar to a cryptoquip. First, you need to set up a conversion array. Then, run a strtr() and make the conversion into a new string. The code will look something like this: $input = "hElLo WoRlD"; $convert = array('A' => 'a', 'B' => 'b' ... ... 'Z' => 'z', 'a' => 'A' ... ... 'y' => 'Y', 'z' => 'Z'); $output = strtr($input, $convert); You can also look into generating the array by other means, such as looking through char codes. It is important to make sure that the array keys are the start letters and the array values are the end letters. It does not matter in what order you populate the array, as long as all letter pairs (upper-to-lower and the other way too) are present.


Convert the gray code 10101111 to binary?

To convert Gray code to binary code you must be familiar with the logical XOR operator. XOR outputs a 1 bit if either of two input bits is 1, but not both. The truth table for XOR, for all possible inputs p and q, is as follows:p q output0 0 00 1 11 0 11 1 0The algorithm to convert from Gray code to binary code is as follows:Step 1: Fix the most-significant bit, the MSB, which is always the same for both codes. If there are no more bits, we're done, otherwise proceed to step 2.Step 2: XOR the most recently fixed binary bit with the next available Gray bit. Fix the result as the next binary bit.Step 3: If there is at least one more Gray bit available, go to step 2. Otherwise we're done.Therefore, to convert 10101111 from Gray to binary, we proceed as follows:Gray = 10101111Fix MSB = 11 XOR 0 = 11 XOR 1 = 00 XOR 0 = 00 XOR 1 = 11 XOR 1 = 00 XOR 1 = 11 XOR 1 = 1Thus: Binary = 11010101Note that we carry the fixed bit (the bold bit) onto the next line as the l-value (left operand) of XOR. The r-value (right operand) of XOR is always the next available Gray bit after the MSB. Reading the fixed bits from top to bottom reveals the binary code.We can also write this as follows:Gray = 10101111Binary = 1 XOR 0 = 1 XOR 1 = 0 XOR 0 = 0 XOR 1 = 1 XOR 1 = 0 XOR 1 = 1 XOR 1 = 1Reading the fixed (bold) bits left to right reveals the binary code.