Convert inch fraction to decimal value
I get a lot of printer requirements tin Fractions (12 11/16 Inches, 2 1/8 inches, etc.) Is there a way in illustrator to convert those to decimal values?
In illustrator, most dialog boxes can do math, so do the fraction first. 5/8 which would be .625 then enter the whole number 12 in front of the decimal 12.625
That's assuming the dialog box can not handle the whole number and the fraction at the same time.
Similar Messages
-
Converting Time format to Decimal Value
Dear All,
How to convert time to decimal value for substraction of time and decimal value
for eg l_time type tims
l_dec type p.
l_diff = l_time - l_dec
Kindly let me know.
Thanks in Advacne,
RanjanHi,
Try like this...
PARAMETERS : tim TYPE tims,
y TYPE p.
DATA : t TYPE string,
t1 TYPE string,
t2 TYPE string,
t3 TYPE string.
START-OF-SELECTION.
t = tim(2).
t = t * 3600. " hours to second
t1 = tim+2(2).
t1 = t1 * 60. " minutes to second
t2 = tim+4(2).
t3 = t + t1 + t2. " total time in second
t3 = t3 - y.
Regards
Debarshi -
How could I choose some bytes from HEX string and then convert it to a decimal value?
Hi I am working with an OMRON E5EN temperature controller using VISA serial to get data, I send the Read from Variable Area command and get this string in hexa 0230 3130 3030 3030 3130 3130 3030 3030 3030 3030 3041 3203 71 or .01000001010000000000A2.q in ASCII this string means:
02 STX
3031 3030 Node and subadress
3030 End Code Normal Completion
3031 3031 Command Read from Variable Area
3030 3030 respt code Normal completion
3030 3030 3030 4132 Hexadecimal A2 = 162 (this is the temperature data that I want to show in decimal)
03 ETX
71 Block Check Character
I want to choose the eight bytes for the temperature data and convert it to a decimal number. I have seen the examples to convert a Hexa string to decimal but I do not know how to choose the specifics bytes that I need.
I have look for a driver but i didn´t find any. I am a beginner so please include especific topics for me to study in your answer.
Thanks
Carlos Fuentes Silva Queretaro MexicoIf the response always has the temperature starting with byte 15 and is always 8 bytes in length, you can use the String Subset function to get those bytes out of the string. Then use Hex String to Number to convert to a decimal number.
Well someone already beat me to the solution:
Message Edited by tbob on 01-04-2008 04:42 PM
- tbob
Inventor of the WORM Global
Attachments:
HexStr2Decimal.png 7 KB -
How to convert a number to FLOAT with 9 decimal values.
Hi all,
I need to convert a number like '10.02' to a floating point number with 9 decimal values like '10.022111221'. I think that the right function is TO_BINARY_FLOAT, but how can I obtain 9 decimal values? If I use the following syntax:
select TO_BINARY_FLOAT(num) from table
I obtain a floating point values with a variable number of decimal numbers after the ".", instead I need 9 number after ".".
Regards,
Maurizio.Hi,
the number I need to select is the result of a product, for example:
select (Num_A * Num_B) from Table;
Num_A has 2 decimal numbers, like 12.01 and Num_B could be: 12.111111111.
Now, Num_A * Num_B = 653.999999994
but I issue:
select TO_BINARY_FLOAT(54.00 * 12.111111111) from Table
I obtain:
654, a rounded value, but I need 653.999999994. -
Convert non-ASCII character to decimal value
Hi all,
I have the following problem:
When reading a String containing the full spectrum of UTF-8 characters from a BufferedReader:
How can I get the decimal value of the String's characters outside the ASCII range?
When I try to do a MyBufferedReader.read(), I get the int value 65533 for these characters, instead of their real value in the UTF-8 set.
Can anyone help?
Thanks!
DreThat's the character you get when you try to decode a character with no valid decoding. Of course there aren't any such characters for UTF-8. Therefore whatever you did, don't do that. More specifically: you've already got a String, don't do anything which involves converting it to bytes. That's completely unnecessary.
Or perhaps the problem is the way you create the String in the first place. Who knows? -
Very Urgent - Converting Character value to Hexa Decimal value
Hi
data: lv_stsor_hex(16) type X.
p_is_ppc_comp_conf-stsor is a char 10 field ***
<b>write p_is_ppc_comp_conf-stsor to lv_stsor_hex.</b> "<-- Hex Conversion
In 4.6C version this write statement is working fine but this is obsolete in ECC 6.0
and its showing syntax error.
Can anyone tell me how to convert a 10 char length value to a hexa decimal value
which is of 16 characters length and of type hexadecimal
Thanks a lot. Points will be rewarded immediately.Hi,
Use the Function module CHAR_HEX_CONVERSION.
report zeta_hex.
data: s type string.
data: h(1) type x.
data: c(1) type c.
data: byte(2) type c.
data: length type i.
FIELD-SYMBOLS: <DUMMY>.
s = 'ThisIsAString'.
length = strlen( s ).
do length times.
byte = ( sy-index - 1 ).
c = s+byte(1).
* You can do this
ASSIGN h TO <DUMMY> TYPE 'X'.
WRITE c TO <DUMMY>.
* or you can do this
* call function 'CHAR_HEX_CONVERSION'
* exporting
* input = c
* importing
* hexstring = h.
write:/ h.
enddo.
Regards
Sudheer -
Convert Voltage values to Decimal values.
I need to convert voltage values/range to decimal values/range.
Example: I read voltage (range 0 to 1.0volts) form DAC and covert it corresponding decimal value (decimal value range is 0 to 16000).
0 decimal = 0 volts
16000 decimal = 1.0volts.
Thanks for the help.I'm not sure how you'd get a value of 16000 out of the 2620 as that is only a 12-bit DAC that will produce values from 0 to 4095. Here's the transfer function directly copied from page 12 of Linear's datasheet.
Charles Chickering
Architecture is art with rules.
...and the rules are more like guidelines
Attachments:
TransferFunction.JPG 17 KB -
Decimal value automatically converting into int
Hi,
I have a SQL column which is a string and its value is casted to have decimal value. For example 92.57
In C#, below is the code I have written to retreive the value.
command.Parameters.Add("@ProcessCompliance", SqlDbType.Decimal).Direction = ParameterDirection.Output;
ProcessComplaincecount = command.Parameters["@ProcessCompliance"].Value.ToString());
But value is getting converted as 93 as a int. I want it as 92.57
Regards, Shreyas R SFor best results, you should post this question in the SQL development or C# forums. (This is a SharePoint forum.)
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner -
How do I convert an alpha character from a text string to its decimal value
I am trying to find out the actual decimal value of a character in a string. So far the code below is as far as I got. I am able to get what I guess is a byte value.
This is for a school assignment:
The idea behind what I am trying to do is to design a hash function to store dictionary words into a bucket array hash table, without using the existing Hashtable.class
so far this is what I can come up with to get some kind of value for each character in the string, however, what I am trying to get is the decimal value for each character.
public static void main(String args[]){
String word = "abcdefghijklmnopqrstuvwxyz";
for (int i=0 ; i < word.length(); i++){
System.out.print((word.substring(i,i+1)));
System.out.print("\t : "+((word.substring(i,i+1))).getBytes());
Thankyou for any replies.I'm not sure I completly understand your goal- what you mean by "decimal value", but, if you simply want to find the byte value of each character in a String, you would probably be better off using getBytes() in a way like this,
byte [] bytes = string.getBytes();
Then, if you need to map that to a charcter, you could use a for loop like
for (int x = 0; x < bytes.length; x++) {
table.put((char)bytes[x], bytes[x]);
which assummes this bucket class of yours allows primitive data types like so (in Hashtable or HashMap, you would have to use a wrapper Object). I guess, my point reduces to, don't use substring and string search methods (like indexOf()), unless you have to because they are more expensive then just maping the array of bytes and chars, which seems to be what you are interested in doing. -
CONVERTING DATA TO 2 DECIMAL PLACES
All,
I needed to convert a BSO database to only have 2 decimal places. I did this by exporting the data and restricting the export calc to 2 decimal places.
HOWEVER - there still appears to be rollups that have more than 2 decimal places.
* Is there an easier way to convert data to 2 decimal places?
* Is there a "bug" were essbase produces more than 2 decimal places even when all 0 level members have none?
ThanksOld posts never die until they're beaten into the ground...
On the off chance that someone, anyone still cares, Glenn was absolutely correct when he stated that Essbase stores data as floating point values.
And when that happens, only values that are divisible by two or 10 are stored without some kind of fractional value.
See the DBAG: http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag/dcaintro.html
Most computers represent numbers in binary, and therefore can only approximately represent real numbers. Because binary computers cannot hold an infinite number of bits after a decimal point, numeric fractions such as one-third (0.3333...) cannot be expressed as a decimal with a terminating point. Fractions with a denominator of the power of two (for example, 0.50) or ten (0.10) are the only real numbers that can be represented exactly. See IEEE Standard 754 for Floating-Point Representation (IEEE, 1985).There is nothing you can do other than handle the round/truncate in the reporting layer.
You can always take it up with IEEE. :) As we used to say in school when taunting Electrical Engineers, "You can't spell 'geek' without --Cameron-- 'ee'." :) Or hope for an analog computer.
Regards,
Cameron Lackpour -
Need help with converting date format to decimal in SSRS expression.
Hi all,
I have a decimal data type column with a record in the following format 20150219 --> yyyyMMdd. And I am trying to convert the return value from SSRS date/time parameter to a decimal value.
The TMDTOP column is the decimal data type with date records in yyyyMMdd format.
My return parameter is the following:
=IIf(IsNothing(Parameters!SystemDate.Value),Fields!TMDTSY.Value,CDec(Format(Parameters!SystemDate.Value,"yyyyMMdd")))
When I try to run the report I get the following error:
Failed to evaluate the FilterValue of the DataSet ‘DataSet1’. (rsFilterEvaluationError)
I appreciate if anyone can help me on solving this problem.
Thanks in advance.why casting date to decimal here? Can you explain?
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Convert a String to Decimal Format in European format
Hi Experts,
I am having a string as a context type for a input field, where the user can enter the Price, I need to convert the same into European format "###.###,00", I am using this below code to convert the string to decimal format
User will enter the input as 10 as it needs to be converted into 10,00. Also, 1000 which has to be converted as 1.000,00
String Str1 = wdContext.currentvn_temptable.getVa_TempUnitPrice();
Locale mylocale = Locale.GERMAN;
String pattern="###.###,00";
NumberFormat nf = NumberFormat.getNumberInstance(mylocale);
DecimalFormat df = (DecimalFormat)nf;
df.applyPattern(pattern);
String output = df.format(Str1);
wdComponentAPI.getMessageManager().reportSuccess("Unit Price" + " " + pattern + " " + output);
When I execute the above code, i am getting an error called "Malformed Pattern ###.###,00"
Please let me know, how to convert a String to Quantity in European format
Thanks & Regards,
PalaniHello!
Try to change your pattern to this one
Locale mylocale = Locale.GERMAN;
String pattern = "#,#00.00";
NumberFormat nf = NumberFormat.getNumberInstance(mylocale);
DecimalFormat df = (DecimalFormat)nf;
df.applyPattern(pattern);
String output = df.format(1111111.222);
Pattern has an influence on number of digits between separators, but you have to use ',' for grouping and '.' for decimal. Character values for separators correspond to your Locale object.
Thanks, Mikhail -
Loading decimal value to an infoobject of type char
I have an extract structure with field timestamp, which is of type dec and length 15. Now i want to load this value to an infoobject in ODS. But this infoobject is of type char and length 18. when infopackage loading is scheduled it is giving the following error. Record 1 :InfoObject /BIC/IFITMSTMP does not contain alpa-conforming value 20061206084944.
Is it because i tried to move a dec valu into a char field with a different length? If so how will i load a decimal value of length 15 to a char of length 18. Can anyone please help me with this?
Thanks in advance.if u r using BI7.0
go to the datasource of the cube
in the general info tab of the datasource
there is a check box with PSA not typed
check it
if u check it all the values from the external source will be converted into character format irrespective of their data type -
Loading a decimal value to an infoobject of type char
I have an extract structure with field timestamp, which is of type dec and length 15. Now i want to load this value to an infoobject in ODS. But this infoobject is of type char and length 18. when infopackage loading is scheduled it is giving the following error. Record 1 :InfoObject /BIC/IFITMSTMP does not contain alpa-conforming value 20061206084944.
Is it because i tried to move a dec valu into a char field with a different length? If so how will i load a decimal value of length 15 to a char of length 18. Can anyone please help me with this?
Thanks in advance.if u r using BI7.0
go to the datasource of the cube
in the general info tab of the datasource
there is a check box with PSA not typed
check it
if u check it all the values from the external source will be converted into character format irrespective of their data type -
Convert hexadecimal output to decimal (number)
I am reading hexadecimal format from the output of the VISA read block and I want to convert it to the decimal preferably exponential format.
Example of what I read is 76 00 02 (in dec: 7.600 E+2).
I know there is "type cast" block that converts nicelly but I am not sure what to specify for a type input.
Can you show me how to apply this type cast block for in my VI so that it converts hex string (76 00 02) into exponential string/number (7.600 E+2)?
I attached my VI so it is more clear.
Thanks everybody,
Pedja
Attachments:
MultiGauge.vi 64 KBCoop wrote:
> I am reading hexadecimal format from the output of the VISA read block
> and I want to convert it to the decimal preferably exponential format.
> Example of what I read is 76 00 02 (in dec: 7.600 E+2).
> I know there is "type cast" block that converts nicelly but I am not
> sure what to specify for a type input.
> Can you show me how to apply this type cast block for in my VI so that
> it converts hex string (76 00 02) into exponential string/number
> (7.600 E+2)?
Looking at your code I see that you have not a hexadecimal string coming
back but instead a binary string. The fact that you display the string
as hexadecimal in the string indicator is just showing you the ASCII
codes of the string characters as hexadecimal numbers.
The funct
ion From Hexadecimal String expects a clear text string with
hexadecimal characters but that is something entirely different from a
binary string you choose to display as hexadecimal numbers.
An example: the binary string 7600 02 you receive from the device is in
fact the character 'v', a null character and a 02 character (or in ASCII
terms a start of text character).
So assuming your example is right (which I have to admit seems very
strange and therefore suspicious to me) you would have to do something
more like included example. But as I said I have little understanding
why the hexadecimal interpretation of the binary values should
correspond to the decimal value you want to have!
Also as you can see there is not really clear where the 00 character
belongs to. The two methods where it is either part of the multiplier or
the exponent both produce the same result for this particular example.
Which one is right if any, should be tested.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions
Attachments:
Binary_(Hex)_to_Decimal_Numeric.vi 51 KB
Maybe you are looking for
-
ERROR MESSAGE WHEN CONNECTING IPOD TO PC
My ipod shuffle has been working fine for over one year. Yesterday I went to connect the ipod to the docking station on the PC to charge it and an error message stating "USB device not recognized" pops up. The Ipod doesn't open up when itunes is open
-
Updated my ipod to ios5,and now it doesn't play most of my songs.
I updated my iPod touch 4g to iOS5,and it turned to be much slower than before and the most wired thing is that now it doesn't play most of my songs! Play lists are useless now since if I click one of them and choose some songs,my ipod stops at the s
-
Does not return to the Home screen after you press the Home button
-
A carousel slideshow application.
I apologise if this is the wrong forum but I can't se a more appropriate one. Does anyone know of a stand alone program which displays photographs in a carousel format using the full screen, no menu bar etc? There is software (Carousel Slideshow II)
-
Total of Daily Balances for transaction PTFMLA
Dear all I'm working with a class, to modify the method, but I'm having trouble. We're using the ECC6.0 system and the class is ZCL_IM_FMLACUML from SAP. When drilling down using SE80 object list, you go from ZCL_IM_FMLACUML to Methods to IF_EX_PTCCE