Metric conversion
Can anyone tell me how they would go about converting a set value for meters to an equivalent number of yards, feet and inches with yards and feet both being integers.
Example:
10 meters is equal to:
10 yards
2 feet
1.32424 inches
I was able to get an applet to produce the equivalent in yards, feet or inches but not altogether to describe one value.
I hate to ask math problems but my java solution doesn't seem to work correctly.
You mean, how do you convert 10.703451 yards to that?
double dYards = 10.703451; // insert your calculation here
int iYards = (int)dYards;
double dFeet = (dYards - iYards) * 3;
int iFeet = (int)dFeet;
double dInches = (dFeet - iFeet) * 12;
Similar Messages
-
How to Perform Imperial to Metric Conversions in Mapping
Hi All,
I have the conversions in mapping from Imperial to Metric Conversions.( Ex: kg's to LB's and ect...)
Do i need to follow any standard conversion table or can i perform simply in mapping with calculations
How do i proceed for this, could you please suggest me in this
Regards
Vamsi>>Do i need to follow any standard conversion table or can i perform simply in mapping with calculations
I dont think there is any conversion table for this within XI.
You can just do in mapping with calculations.
Thanks
Aamir -
Imperial/metric conversion of text
Hi everyone,
Im after a script or some direction for a script to convert a large number of text objects. I'd like to be able to convert from metres to yards and vice versa. All the text objects would be on the same layer and only contain integers and symbols such as (25) -23.
If the conversion could select all the text on one layer, and then convert and copy to a new layer it would be helpful but this can be done manually if needed. Is this possible? Im not familiar with scripting really but can learn what i need to get this script going. Any advice is appreciated.
Thanks
AlexThis should give you a basic example… You can do this just using plain JavaScript Math or by using unitValues… This should be easy enough for you to play with… As is… it only works with text contents that are all numbers… You will need to explain further your text I think…
#target illustrator
addMeasurements();
function addMeasurements() {
var i, doc, imp, met, txtItems, txt, nub;
doc = app.activeDocument;
imp = doc.layers.getByName( 'Inch' );
met = doc.layers.add(); met.name = 'MM';
txtItems = imp.textFrames;
for ( i = 0; i < txtItems.length; i++ ) {
txtItems[i].duplicate( met, ElementPlacement.PLACEATEND )
txtItems = met.textFrames;
for ( i = 0; i < txtItems.length; i++ ) {
var nub = parseInt( txt = txtItems[i].contents ); // For Numbers only!!!!
txtItems[i].contents = String( nub * 2.83464567 ) -
Applet shows in IE but not netscape
I've made an applet in the following page:
http://members.tripod.com/hb13/3rmMain.html
It works perfectly in NN6, but IE just shows me a blank page.
Any Ideas?
Thnx in advanceAny Ideas?In IE, the <applet> tag doesn't work with Swing applets. To make it work, you can use code like the following. (I copied it from my english-to-metric conversions page.)
And no, I didn't write all this myself; the JDK comes with a program called HTMLConverter, which will convert the <applet> tag into code that's supposed to work on all browsers. Instructions for it are somewhere on this site.
<SCRIPT LANGUAGE="JavaScript"><!--
var _info = navigator.userAgent; var _ns = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
//--></SCRIPT>
<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
//--></SCRIPT></COMMENT>
<SCRIPT LANGUAGE="JavaScript"><!--
if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 100 ALIGN = "baseline" ALT = "No Java 2 support for applet." codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Converter.class" ARCHIVE = "Converter.jar" ALT = "No Java 2 support for applet." WIDTH = 400 HEIGHT = 100 ALIGN = "baseline" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
//--></SCRIPT>
<APPLET CODE = "Converter.class" ARCHIVE = "Converter.jar" WIDTH = 400 HEIGHT = 100 ALIGN = "baseline" ALT = "No Java 2 support for applet."></XMP>
<PARAM NAME = CODE VALUE = "Converter.class" >
<PARAM NAME = ARCHIVE VALUE = "Converter.jar" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
</APPLET>
</NOEMBED></EMBED></OBJECT> -
Can you have code run in a terminal and applet?
For example in my program in Main we enter the data for menu and amount of the exchange but the result is displayed in an applet.
works great in the terminal window.
but when using an applet it will not work.
import java.awt.*;
import java.applet.*;
import javax.swing.* ;
import TerminalIO.*;
public class MetricConversionMain {
final static String CRLF = "\n" ;
static String msgOut ;
public static void main ( String[] args ) {
int valid = 0;
int choose = 0;
double numUnits = 0.0;
double convertedUnits = 0.0;
// title, class, author and version info to
KeyboardReader entries = new KeyboardReader(); //object for keyboard entry
while (valid != 1) {
// menu for conversion selection 1 thru 4
System.out.println("\n\t\t1 \tFor inches to centimeters");
System.out.println("\t\t2 \tFor quarts to liters");
System.out.println("\t\t3 \tFor pounds to kilograms");
System.out.println("\t\t4 \tFor miles to Kilometer");
choose = // GW corrected my code to the present prior I was choose = choose.readInt etc etc
entries.readInt("\n\t\tPlease choose one of the following menu items to convert: ");
if (choose == 1 || choose == 2 || choose == 3 || choose ==4 ) {
valid = 1 ;
else {
System.out.println("Invalid Selection.") ;
switch (choose) {
case 1 : System.out.println("Converting inches to centimeters... ") ; break ;
case 2 : System.out.println("Converting quarts to liters... ") ; break ;
case 3 : System.out.println("Converting pounds to kilograms... ") ; break ;
case 4 : System.out.println("Converting miles to kilometers... ") ; break ;
} // Error checking, reiterates the user's current choice prior to next question
System.out.println();
KeyboardReader useEntry = new KeyboardReader(); //object for keyboard entry
numUnits =
useEntry.readDouble("\n\t\tNow please enter the amount you wish to convert: ");
System.out.println ("\t\tThe conversion comes to " + numUnits);
//KeyEntry equal = new KeyEntry();
//equal.setNumUnits
//(useEntry.readDouble("\n\t\tNow please enter the amount you wish to convert: "));
//System.out.println("\t\tThe conversion comes to " + getnumUnits());
switch (choose) {
case 1 : Inch fromInch = new Inch(numUnits); break ;}
case 2 : Quart fromQuart = new Quart(numUnits) ; break ;
/* case 3 : Pound fromPound = new Pound( numUnits) ; break ;
case 4 : Mile fromMile = new Mile(numUnits) ; break ;
} // Switch statement that performs the correct conversion based on the user's input*/
// Instantiate US Standard Objects
/* Inch fromInch = new Inch(1) ;
Foot fromFoot = new Foot(1) ;
Yard fromYard = new Yard(1) ;
Mile fromMile = new Mile(1) ;
Ounce fromOunce = new Ounce(1) ;
Quart fromQuart = new Quart(1) ;
Gallon fromGallon = new Gallon(1) ;
Pound fromPound = new Pound(1) ;
// Instantiate Metric Objects
Centimeter fromCentimeter = new Centimeter(1) ;
Meter fromMeter = new Meter(1) ;
Kilometer fromKilometer = new Kilometer(1) ;
Gram fromGram = new Gram(1) ;
Liter fromLiter = new Liter(1) ;
Kilogram fromKilogram = new Kilogram(1) ;
LitGal fromLitGal = new LitGal(1) ; */
} // main
} // class MetricConversionMainsupper classpublic class SuperConverter {
* This class is the super class for a series of
* subclasses that perform conversion from metric to
* imperial or vice versa.
protected double numUnits ;
protected double convertedUnits ;
protected double factor ;
// Constructor
public SuperConverter ( double argNumUnits, double argFactor ) {
numUnits = argNumUnits ;
factor = argFactor ;
convertedUnits = numUnits * factor ; //convert() ;
} // Constructor
protected double getnumUnits() {
return numUnits ;
protected void setnumUnits ( double argNumUnits ) {
numUnits = argNumUnits ;
protected double convert () {
this.convertedUnits = numUnits * factor ;
return convertedUnits ;
public double getconvertedUnits() {
this.convertedUnits = convert() ;
return convertedUnits ;
} // end SuperConverter Classsubclass that works[public class Inch extends SuperConverter {
public Inch (double argNumUnits)
super ( argNumUnits, 0.914 ) ;
System.out.print (" ") ;
if (argNumUnits > 1)
System.out.println(argNumUnits + " inches = " + convertedUnits + " centimeters") ;
else
System.out.println(argNumUnits + " inch = " + convertedUnits + " centimeters") ;
/code]
The code I want to use with the applet is import java.awt.*;
import java.applet.*;
import javax.swing.* ;
public class Inch extends SuperConverter {
final static String CRLF = "\n" ;
static String msgOut ;
public Inch (double argNumUnits)
super ( argNumUnits, 2.54 ) ;
System.out.print (" ") ;
if (argNumUnits > 1)
{ msgOut = " Metric Conversion Chart" + CRLF + CRLF;
msgOut += " US Standard to Metric" + CRLF ;
msgOut += " -------------------------------------------------" + " " + CRLF ;
msgOut = argNumUnits + " inches = " + convertedUnits + " centimeters" ;
else
{ msgOut = " Metric Conversion Chart" + CRLF + CRLF;
msgOut += " US Standard to Metric" + CRLF ;
msgOut += " -------------------------------------------------" + " " + CRLF ;
msgOut += argNumUnits + " inch = " + convertedUnits + " centimeters" + CRLF + CRLF + CRLF ;
} JOptionPane.showMessageDialog ( null, msgOut ) ;
}The issue I have is the applet/window appears behind the terminal window. below is the code that is use for the window. I want to have the window appear infront of the terminal window.import java.awt.*;
import java.applet.*;
import javax.swing.* ;
public class Pound extends SuperConverter {
final static String CRLF = "\n" ;
static String msgOut ;
public Pound (double argNumUnits)
super ( argNumUnits, 0.454 ) ;
System.out.print (" ") ;
if (argNumUnits > 1)
{ msgOut = " Metric Conversion Chart" + CRLF + CRLF;
msgOut += " Metric to US Standard" + CRLF ;
msgOut += " -------------------------------------------------" + " " + CRLF ;
msgOut += argNumUnits + " pounds = " + convertedUnits + " kilograms" + CRLF + CRLF + CRLF ;
else
{ msgOut = " Metric Conversion Chart" + CRLF + CRLF;
msgOut += " Metric to US Standard" + CRLF ;
msgOut += " -------------------------------------------------" + " " + CRLF ;
msgOut += argNumUnits + " pound = " + convertedUnits + " kilograms" + CRLF + CRLF + CRLF ;
} JOptionPane.showMessageDialog ( null, msgOut ) ;
} -
Anyone have rough metrics re. Extended WH Tax conversion run-time?
Does anyone have any rough statistics regarding re. performance/run-time of the data conversion program that is run when activating extended WH tax in a live company code? Of greatest interest would be some rough numbers for a system with as high a record count as is available.
Thanks.Chris,
I wanted to reply here on your original thread . I appreciate your noting your prior case 10140045 - this appears not to have been routed correctly and was closed out. We will escalate this situation and ensure follow up.
I appreciate your speaking up, and your patience. I really hope we can restore your confidence in Lenovo.
Mark
ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
Mark Hopkins
Program Manager, Lenovo Social Media (Services)
twitter @lenovoforums
English Community Deutsche Community Comunidad en Español Русскоязычное Сообщество -
My conversion metrics aren't matching up with my visits/orders metrics.
Any help that can be provided on why this might be happening would be greatly appreciated.
Did you reinstall CS3 after CC?
For that matter, doing an in-place upgrade on the OS is always a gamble with Adobe programs. Reinstalling all the versions you need, in order, would probably solve your problem.
And you shouldn't need to save as IDML after opening the .inx in CC. -
Fedex can only be used with dreamweaver using metric, not pounds (lbs)
Fedex can only be used with dreamweaver using metric, not pounds (lbs), evidently?
This as per their tier 2 tech suport.
They say I should just convert to metric, no joke!
Any ideas would be greatly appreaciated?
Also a warning to anyone thinking of using business catalyst for their site, sorry, their business.
Their note to me:
Your request (# 82816) has been solved. To reopen this request, reply to this email or go to the Help & Support page.
Silviu Ghimposanu (Adobe Business Catalyst Support)
Apr 14 15:23
Thanks for contacting us Michael
Our engineering team has detected some problems when doing weight conversions (from the quantities entered in the interface to what’s used when making the API calls to FedEx) -
He have added this to our internal bug tracker to be fixed for one of the future releases.
I realise that this might not be what you wanted to hear,but at this moment we do't have a workaround in order to send the
dimensions in pounds and not in KG
Sorry for this inconvenience!
Kind regards,If you're in US it will be in pounds. If your site is set any other country
in the rest of the world it will be metric. So BC or as you call it
Dreamweaver will look at the site country, which you set when creating the
site -
I need convert some data from one metric system to another when mapping, how to implement it in XI easily? do I need to implement java code or just design at integration repository?
Message was edited by: Spring TangHi Spring,
May be you can try this method.
1. write the conversion routines as functions in a JAVA class.
2. convert it as a JAR.
3. import it in Integration Repository.
4. now in "user defined function", you can use the methods, present in the imported JAR.
this time also u need to create user defined function for each mapping, but that "user defined function" will have only one statement, the function call from that imported JAVA class.
hope this helps. if any clarification revert back.
regards,
P.Venkat -
Base Unit of Measure to Sales Unit Conversion
Hi,
Currently we are selling material in MT and all other transactions in MM and Production are in MT only.
Now client wants material to be sold in Meters, also in some cases the same material will be sold in MT also.
(As per my knowledge generally if the conversion is one to one i.e. base unit of measure is pieces and Sales unit of measure will be boxes and
1 box = 10 pieces can be maintained in material master.)
Here for conversion between Metric tonne to Meters there is formula involved so how and where this conversion needs to maintained in system.
How to map this type of scenario.
What all activities needs to be done from SD side and which other modules need to be involved this process.
Note: SAP is installed for more than 3 years now.
Hope i clear enough.
Regards,Hi following is the formula.
OD = Outer diameter, thickness, length, Number of tubes are maintained in sales order charateristics during sales order creation.
OD
Thickness
Weight in Kgs / M
length of tube
Nos of tubes
Total length in Mtrs
Rate / MT
Rate / Mtr
A
X = (A-B)*B*0.02456
'L
N
T= L xN/1000
R
M=R/1000*X
Regards, -
Hi!
I would like to use the Quantity Conversion function (RSUOM) to convert Sales Quantity in base unit (0QUANT_B) from datasource 2LIS_11_VAITM, to a quantity in other Unit of measure with reference to the material?
I just know that the infoobject 0MAT_UNIT can help, but I have no idea in how to do so.
Here is some sample data:
Sales: Material A 10PC
Conversion: 100PC = 160 M2 (Square meter)
Expect to show in report: Material A 16 M2.
Could anyone here please kindly told me the detail steps in doing it?
Thank You very much!!
Best Regards,
ChrisDear Chris,
I need some help from you, I have gone through your Link in SDN.
I want to convert all the material in to MT ( Metric Tons ) , I try to convert in BEx ( Report Level ) I have followed all the Steps what you have mentioned I this LINK.
Quantity Conversion
This is My Thread , I have posted in SDN but
/thread/529862 [original link is broken]
I think you have solved this Quantity Conversion Issue .
I highly appreciate , if you could send any screen shorts to me.
My Id: [email protected] or [email protected]
Pls go through my link I have wrote step-by-step what I have done.
Thanks & Regards,
SHAIK -
How can I have OEM's Metric numbers in PLSQL code?
Hi,
I have the following Metric numbers in the web based OEM:
CPU Used
Run Queue Length
Physical Reads (KB)
Redo Size (KB)
User I/O
System I/O
Network
Concurrency
Commit
I know above Metric numbers come from V$ tables such as: V$SESSION, V$SYSSTAT, V$SESSION_WAIT, V$SYSTEM_EVENT
Is there anyway that OEM shows me how exactly it gets these numbers, so I can have the very same number in my PLSQL code?
Thank you,
AlanHi Justin,
I just used this query to find the “Run Query Length”:
select * from v$statname where LOWER(name) like '%queue%'
It gives me the following result:
enqueue timeouts
enqueue waits
enqueue deadlocks
enqueue requests
enqueue conversions
enqueue releases
global enqueue gets sync
global enqueue gets async
global enqueue get time
global enqueue releases
global enqueue CPU used by this session
summed dirty queue length
queue update without cp update
queue splits
queue flush
queue position update
queue single row
queue ocp pages
queue qno pages
How could I find the relevant rows?
I am having a similar challenge to find values for “CPU Used” metric
Thank you,
Alan -
Your opinion: ILT-to-eLrn conversion producitivity rate
Thanks ahead for your thoughts, opinions, facts, etc.
I'm trying to determine appropriate productivity rates for converting instructor-led training (IT subject matter) to elearning using Captivate. Most of the instructional design is in place; however, content will need to be re-chunked, and sims will need to be developed. I'd rate the content as average to complex.
As a starting point, I'm using the eLearning Guild's survey results (from 2002). They state that the average range of hours required to develop one finished hour of elearning are:
Asynchronous
Synchronous
Simple
117
86
Average
191
147
Complex
276
222
The above metrics represent from-scratch development, and are all-inclusive, i.e., they include SME efforts, production, QA, etc. I'm assuming that ILT to elearning conversion would/should merit better productivity, and using a rapid dev tool like Captivate would speed things along even further.
Would anyone care to provide a ratio based on educated guess? or stab-in-the-dark? either is fine
Thanks,
AlainaS Wong wrote:
Hi Experts,
>
>
> Like to seek your expertise on the possibility to maintain a different set of unit of measure conversion rate in MIGO?
>
> Upon creation of PO our material conversion rate per info record is just an estimate. We can only have the actual rate after PO approval. Thus will need to maintain the actual rate before we perform MIGO.
>
> I have been researching on this and found many others saying that to do this we can only recreate a new PO. Are there other options like maintaining in MIGO?
>
> Understand that in the case of Sales Order, we are able to maintain different set of unit of measure in Outbound Delivery.
>
> Does anyone knows the rationale of this? Somehow it seems rather inconsistent to me that we can do this in SD and not in MM.
>
> Appreciate if Gurus will share their opinion on this.
>
>
> Thanks in advance.
>
> Regards,
> Wong
Hi Wong,
Your question is bit confusing. Are you asking abt UoM conversion or Price conversion or Exchange Rate conversion? Pls be specific & clear to help us understand your query.
Shiva -
Problems with Excel 2007 PDF conversion
I'm trying to convert an Excel 2007 workbook into a PDF. I installed Acrobat 8.1.3 Professional onto my machine and it put an Acrobat Menu choice in Excel. So I can convert, but now I have a host of problems/issues, probably arising from the fact that I'm new to this.
1. The Acrobat add-in moved my Page Breaks inside Excel
2. Now I can't seem to change the page breaks at all in Page Break Preview
3. My Reset Page Breaks in Excel is grayed out
4. Acrobat conversion gave me a message "Cannot create tags for Worksheets with Print Titles. Clear Print Titles field in Page Setup dialog". I did have Print titles, but now in that dialog box they don't show. The field isn't even editable.
I have saved the Excel file, not realizing that this Acrobat add-in has apparently altered the Excel file itself. I am now told by someone that I should just not use that Acrobat menu in Excel, and load the Excel file from Acrobat 8 itself. Nice to know. But is there anyway to "reset" my Excel file and remove/adjust what's been done to it, especially the Page Breaks. Or am I missing something obvious?In general, you should not have the page breaks and all locked out by the addition of the Adobe PDF printer and converter. One trick to pull is to try to find the option in Excel Options that allows the output to use the printer metrics and be sure it is turned off. That should mean that you do not get changes as you change the printer. However, the issue of some of your menu items being locked and such is strange.
-
How is Form Conversion Rate been calculated
Can anyone help me understand how the form conversion rate been calculated in the Landing Page Activity for Date Range report in Insight? Trying to figure out the conversion rates been measured in this report, so that we can properly interpret the results from below. Thank you in advance!
Landing page Activity for Date Range in Insight
Landing Page
Total Visits (by visitor)
Total Page Views
Total Visitors
Average Page Time
Total Form Submissions
Form Conversion Rate
my.learning.com/forms
381
422
375
0:09:25
28
100.00%
Transition | LP
18
28
17
0:05:53
2
100.00%
GoCool.html
17
18
14
0:13:09
56
77.78%
Summer Training 2015 Confirmation | EMAIL
21
34
14
0:08:15
22
57.89%
events.Training.com/forms/ISContactUs
27
57
25
0:05:29
21
45.65%Thanks so much for your detailed reply!
I checked into "Landing Page Activity for Date Range" report again and accidently hovered over "Form Conversion Rate"; it displayed the formula as "Total Form Submissions / Total Form Views". I added that metric to the report and saved locally. Now the Form Conversion Rate does equal to the calculation of Total Form Submissions / Total Form Views; data copied below. However, that formula is different from the one specified in the "Insight_ReportDetails_Guide", which is "Total Submits / Total Page Views").
Now, here comes the new questions for your help/ideas/suggestions -
- How come in our "Landing Page Activity for Date Range", the formula for Form Conversion Rate is different from the one listed in "Insight_ReportDetails_Guide"?
- Can we change it to use this formula: Total Submits / Total Page Views?
- Which one indeed is the correct calculation for Form Conversion Rate in "Landing Page Activity for Date Range" report?
Landing Page
Total Visits (by visitor)
Total Page Views
Total Visitors
Total Form Views
Total Form Submissions
Form Conversion Rate
Landing Page 1
5
6
5
6
0
0.00%
Landing Page 2
58
86
56
3
3
100.00%
Landing Page 3
14
15
13
15
2
13.33%
Landing Page 4
16
17
16
0
0
0.00%
Landing Page 5
66
144
55
143
1
0.70%
Landing Page 6
21
47
20
45
1
2.22%
Landing Page 7
24
25
13
25
6
24.00%
Landing Page 8
12
13
12
13
3
23.08%
Landing Page 9
31
37
27
6
6
100.00%
Landing Page 10
24
33
21
31
4
12.90%
Thank you very much!
Xuan
Maybe you are looking for
-
Suddenly, I am unable to open a new tab. I can click on a link and open a tab that way, but if I want to open several sites on my own, I have to open a new browser. I've tried clicking the +, and clicking File - New Tab. Neither are working. I've eve
-
Using Acrobat 9 Pro Typewriter. I select Arial Narrow from the pull-down menu but it still types Courier. I've tried selecting the text, deleting the insertion and starting again, to no avail. Can the typewriter be formatted to a different font?
-
I'm trying to burn a video onto dvd and when i go to preview it everything works except the video. When i choose the chapter I just get a white or black screen. Apple says i need to open the other view and fix any errors but in that screen it doesn't
-
Module Pool (tabstrip control Error : )
I am trying to activate tabstrip control in module pool but error is coming like no sub screen is assigned to tabstrip pushbutton tab12. my main screen is : 0221 flow logic for 0221 is below : PROCESS BEFORE OUTPUT. CALL SUBSCREEN SUB1 INCLUDING SY-R
-
I have an X60 (1706) that is pretty darn old and has worked great for years. I believe the micro wireless switch has failed on it. Mechanically, it works but I assume it has failed electronically. I have been having issues on and off (no pun intended