Conver feet and inches to meters

I'm writing a program that calculates BMI of a person,
but i have some problems trying to extract feet and inches after the user enter their height, you know what I mean?
is something like this, the program prompts user to enter the height (ft'in") so if the person enters something like this 5'6" I have to extract feet and inches and then convert them to meters. I'mm trying to use the StringTokenizer, but I know I;m doing something wrong,
Can anyone help me please?
thank you,

I know but I really need helpThat doesn't make your question any more important than everybody else's. Everybody who posts here needs help. Please don't try to claim that your problem is more important.

Similar Messages

  • Height in feet and inches

    I have a string value for height in the database that I would like split out into feet and inches. For example the value right now is 66, 65, etc...

    Hi Curt,
    If Unit of measure is CM then use below logic
    (totext(({Database_cm}* 0.0328084),0)) & " Fts   "&Tonumber((Split(totext({Database_.cm}* 0.032808,5),".")[2])) *0.00012 & " Inches"
    If Unit of measure is in Meters then You need to convert meters to CM by using below formula
    {Meters_field}/100
    --Praveen G

  • Feet and inches ' and "

    I have an application that requires height in feet/inches.
    Obviously php/mysql will have an issue with something like 6'2"
    because of the ' and ". What they best way to handle this so I can
    still express it this way... or is it not worth it and just use
    feet and inches, the words?

    jsteinmann wrote:
    > I have an application that requires height in
    feet/inches. Obviously php/mysql
    > will have an issue with something like 6'2" because of
    the ' and ". What they
    > best way to handle this so I can still express it this
    way... or is it not
    > worth it and just use feet and inches, the words?
    >
    I would store the value as inches:
    <script>
    convert=function(input){
    x=input.split(/[^\d]/);
    return x[0]*12+ +x[1];
    </script>
    Mick

  • Converting feet and inches to pixels

    I design Video Content for live shows. Often my set designer comes up with bizarre screen sizes. I am looking for a simple app that converts feet and inches into pixels. I want to be able to determine the pixel equivilent of his screen dimensions so that I can create a mask. I have done this using Photoshop, but it would be so much easier if I could simple input the dimensions and then get my results.
    Here's a typical size he would give me...8' by 100 yards ( I know that's insane) or 37' by 17 '
    Any help would be apprecitated

    Johnny,
    Trust me ... I'm no mathematical wizard or
    technoguru, but it seems that as long as you know the
    aspect ratio of the screen you need to fill and you
    match that, the actual pixel dimensions would be more
    of a issue of the display device (a projector, I'm
    assuming).
    For example, I output 720 x 480 (NTSC DV) to tape or
    640 x 480 (DVD-Video) all the time that is later
    projected on a variety of different sized screens.
    If the screen is a 4:3 aspect ratio, my video fills
    the screen if the projector is positioned correctly
    and the right lens is used.
    -DH
    Thanks for the replies guys.
    The problem is that he never gives me ratios, he just gives me stratight sizes.
    I build these in 720 x 480 and they are sent through some unexplicable beta/do-ray-me configuration to output on giant LED walls. The resolution doesn't matter. This strange output configuration only reads my video the same as if I was outputting straight from FCP.
    On one job he gave me the simple 16:9 ratio and I simply put a 16:9 matte on everything within a 720 x 480 using Joe's Filter Beta "Joe’s Aspect Matte RT".
    That was easy. What gets tricky is when he gives me some strange size like
    37 feet high by 6 feet wide. Is there an easy way to figure out this ratio and then build it within 720 x 480 using a matte. If I knew the pixel numbers of 37' by 6' I could just adjust my matte accordingly.

  • Feet and Inches formula

    Is there an easy formula for converting cell values from Inches to non-decimal Feet & Inches? I can get feet and decimals, but '8.3333' isn't as intuitive for the applications I'm using the spreadsheet for!

    If you start with a decimal number of inches in cell B2, you can convert it into feet and inches with the following formula:
    =TRUNC(B2/12)&"ft "&MOD(B2,12)&"in"

  • Conversion from "feet to inches"to"meter and centimeters"

    hi,
    i need this answer urgently!!!!
    i'm trying to write a java program that reads lenghts in feets and inches(or meters and centimeters(or feet and inches). the program askes the user if he/she wants to convert from "feet to inches" to "meters and centimeters" or from "feet to inches". The program then preforms the desired conversion.having the user respond by typing the integer 1 for one type of conversion and 2 for the other conversion.The program reads the user's answer and then executes an if-else-statement. each branch of the if-else statement will be a function call. Include a loop that lets the user repeat this computation for new input values until the user says he or she wants to end the program. Use as many method that are logically needed. The main method should do as little as possible.

    I love these questions - especially the little bits at the end that clearly point out it is a homework question.
    As joeldi says, show us that you've had a decent go at it and we'll be more interested in helping out.
    Regards,
    Tim

  • Converting feet to inches

    I need to conver feet to inches, in my code, I am picking up feet and inches in the input file, and need to convert it all to inches on the output file, for example, a person is 5 07, this needs to be converted to 67 inches....Any suggestions

    Angel_74 wrote:
    I need to conver feet to inches, in my code, I am picking up feet and inches in the input file, and need to convert it all to inches on the output file, for example, a person is 5 07, this needs to be converted to 67 inches....Any suggestionsExcuse me for being late, a just got back from a doctor's appointment.
    So your project is really all about reading text from one file, and writing text to another file right? In that case, you should think about how your program handles the input. Most input comes in the form of a java.lang.String (but not always, depends on your InputStream), then your program needs to convert those String values into int values before you can use the mathematical formulas given above. Then depending on the OutputStream, you may or may not need to convert int back to String or whatever.

  • Convert Feet and Inch to cm (and vice versa)

    I need some help with conversion of height. The form was designed by the department and there is a field where one need to enter the height of the participant.
    The height can either be in cm or in Feet + Inches (not just inches). Once a value has been entered in cm, it converts it automatically to feet and inches. If the user enter the height in feet and inches, it converts it immediately into cm. Much like the kg to lbs conversion fields in the attached document. I have been able to convert the height in cm into Feet and inches e.g. 165 cm = 5'5". However I am not sure how to do the opposite.
    The problem is the way it has been designed as there is a box for Feet and another box for Inches. If the other measure was in Inches only, it would have been easier and that would be like the kg to lbs conversion.
    I have tried multiple way to try to the conversion, but none would do it exactely like the kg to lbs conversion.
    Here is the form:
    https://workspaces.acrobat.com/?d=j8kksFor3eVIg6M07CdkmA

    I tried the following code, but obviously does not work. The problem reside in the fact that I have to reunite 2 fields to get the height in cm and am not sure how to handle that.
    var v1 = (function () {
        var f_source = getField("Feet");
        var result;
        if (event.source && event.source === f_source) {
            result = f_source * 30.48  ;
            event.value = result == 0 ? "" : util.printf("%.0f", result);
    var v2 = (function () {
        var f_source = getField("Inches");
        var result;
        if (event.source && event.source === f_source) {
            result = +f_source  * 2.54 ;
            event.value = result == 0 ? "" : util.printf("%.0f", result);
    event.value = v1 + v2;

  • CS6 Camera Raw - I can now only crop using aspect ratio in the custom crop setting rather than being able to set the dims in cm and inches? anyone know how to revert? ever since installing new mac operating system things have been strange!

    CS6 Camera Raw - I can now only crop using aspect ratio in the custom crop setting rather than being able to set the dims in cm and inches? anyone know how to revert? ever since installing new mac operating system things have been strange!

    Hi Kglad.
    I have looked at all of my settings both in Bridge and CS6 Photoshop regarding Camera Raw. I am at a loss how to set the crop tool in cm or inches as I once did - now the only option is to crop using ratios of 1:1 etc etc - This is infuriating as lots of my square crops I could set at 10" x 10'' specifically to print one to one to fit frame and mount size -
    Now if cropping using bloody aspect ratio of 1:1 (square) the actual dims of the crop are roughly 4.25 inches x 4.25 inches. this means I then have to open the whole image in photoshop in order to crop at the dims I have set! It was so much quicker in terms of batch cropping in camera raw being able to set dims in centimetres and inches but they have gone and mucked around with it, with the new bloody update! Unless you are an absolute genius and know how I can go back to having an option of CM, Inches and aspect ratio within the custom crop settings? (Please say you do)
    here is the new tutorial for CC -  my guess is they have scrapped the control we had over the custom crop settings
    Cropping Images In Adobe Camera Raw 8

  • I use a GoPro 960 30.  When I use imovie it cuts off the feet and the head

    I am using a GoPro at 960 30
    When i use imovie it cuts off the feet and the head.
    how do I prevent that?

    Here are some things to check.
    If possible, set the aspect ratio of your project to the same aspect ratio as your camera. This will be either 16:9 or 4:3.
    If your clips or photos are not the same as your project's aspect ratio, you can select a project clip and
    click on the Rotate, Crop, Ken Burns Tool. FIT will make the movie fill out the screen by Letterboxing. Crop will cut off the edges to fill the screen.
    Finally, you may have analyzed for stabilization, and then had stabilization automatically applied in your project. Stabilization works by zooming in. You can select a project clip and open the Clip Inspector. You can turn off stabilization, or you can move the slider so there is less zoom.

  • Rubber feet and european discrimination

    Hi,
    Just like many others I've lost a pair of my iBook G4 rubber feet. Searching in these forums I've found that apple has a kit that they send to users with the rubber feet and a set of screws called Foot & Socket Kit (http://www.apple.com/support/ibook/doityourself/) and a usa apple care phone number to order it. As it's still under guarantee and I've also got the extended apple care guarantee. I give hem a ring in Spain as I'm Spanish. first I get to speak to somebody in Holland, and he tells me that as the page is in English and belongs to apple usa they can't send me the kit as the european or spanish policy is to take it to an apple care center. The problem with this is that the nearest one is 50km away. I object, he puts me on hold and comes back with the same answer, no.
    I give them another ring and I talk with a lady in another country, she reads the notes of the other call as she tels me hat i all she can do.
    I think this way of doing things in usa and europe is a way of discriminating european customers which like me pay more for apples laptops that have a tendency of loosing their rubber feet.
    iBook G4   Mac OS X (10.4.7)  

    Well, I got on to apple foor the third time today and they are making an exception and sending me 4 new rubber feet for free as I'm still under guarantee. they say they can make the exception as it seems the foot got unstuck because of the heat generated by the computer

  • Feet and Frames burn in

    I know that the new version has a timecode reader burn in function, but we need both TC and Feet and Frames on the movies we create for our sound department. Does anyone know if a plugin could be created to accomplish this?

    but we need both TC and Feet and Frames on the movies we create for our sound department. < </div>
    No help here, sorry, just curious.
    How are you getting feet and frames from inside FCP? I'm only vaguely familiar with coding systems for film (sorry, haven't shot film for 20 years) but I'm not aware that FCP can read them with the standard TC filter.
    bogiesan

  • HT4623 I have a new iphone5 and about 5 meters wifi signal is reduced to one scale, and finally cut off my connection with routerom.I also  have  iphone 4s and  ipad3 and on those I have full signal everywhere. I installed the latest softwer iso 6.0.2 and

    I have a new iphone5 and  about 5 meters wifi signal is reduced to one scale, and finally cut off my connection with routerom. I also have  iphone 4s and  ipad3 and on those two I have full signal everywhere. I installed the latest softwer iso 6.0.2 and I still have a problem!

    Just get into "General" -> last option is "RESET" -> Opt for "RESET NETWORK SETTINGS"
    Your phone will reeboot in a couple of minutes n then get fine on with full signal on the wifi scale.
    Worked perfect for me. Do try n let me know.
    ATB

  • Convert from feet to inches?

    Can numbers convert imported data from feet notation (i.e. 3' 6 1/2") to decimal inches (i.e. 42.5)? I'd like to be able to import rough opening dimensions from my internal CAD (Vectorworks 2008) spreadsheet to generate cut lists with numbers. I can manually type in the info, but that is prone to errors. I'm also looking into whether Vectorworks can export the data I want in the proper format.
    Thanks for any help
    - Tobias

    Hello
    Assuming that the values are entered in a column,
    select a group of the cells containing them
    copy to the clipboard
    call the passed script
    paste the result where you want.
    If I forget nothing, it take cares of all combinations:
    3’ 6 1/2
    3’ 6
    3’ 3/4
    6 3/4
    3'
    6
    1/2
    3' 6 1/2
    even blank rows are correctly treated.
    Of course, if the source of the datas give you the same kind of list, you may call the script directly.
    It only requires that Numbers is the frontmost application.
    save the script as an Application or an Application Bundle.
    store it in the folder <yourStartupDisk>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Doing so you will be able to run the script from the System's scripts menu.
    Select the block of feets values
    Copy to clipboard
    Call the script
    Paste the block of converted values where you want.
    Yvan KOENIG
    25 février 2008
    --(SCRIPT feets2inches.app]
    property passed : {}
    set passed to the clipboard
    if passed contains return then
    set my passed to my decoupe(passed, return)
    else
    set my passed to {passed}
    end if
    set tt to ""
    repeat with vv in my passed
    set vv to vv as text
    if vv is "" then
    set tt to tt & return
    else
    set l to my decoupe(vv, " ")
    if (count of l) = 1 then (* 3' or 6 or 1/2 *)
    set l1 to item 1 of l
    if character -1 of l1 is in {"'", "’"} then
    set nn to ((text 1 thru -2 of l1) as integer) * 12
    else if l1 does not contain "/" then
    set nn to l1 as integer
    else
    set {c, d} to my decoupe(l1, "/")
    set nn to c / d
    end if
    else if (count of l) = 2 then (* 3' 6 or 3' 1/2 or 6 1/2 *)
    set {l1, l2} to l
    if (character -1 of l1) is in {"'", "’"} then
    if l2 does not contain "/" then
    set nn to (((text 1 thru -2 of l1) as integer) * 12) + (l2 as integer)
    else
    set {c, d} to my decoupe(l2, "/")
    set nn to (((text 1 thru -2 of l1) as integer) * 12) + (c / d)
    end if
    else
    set {c, d} to my decoupe(l2, "/")
    set nn to (l1 as integer) + (c / d)
    end if
    else (* 3' 6 1/2 *)
    set {c, d} to my decoupe(item 3 of l, "/")
    set nn to (((text 1 thru -2 of item 1 of l) as integer) * 12) + (item 2 of l as integer) + (c / d)
    end if
    set tt to tt & nn & return
    end if
    end repeat
    set the clipboard to tt
    set passed to {}
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --[/SCRIPT]
    If it works as you wish, I will put it in my idisk.
    Yvan KOENIG (from FRANCE lundi 25 février 2008 15:57:4)

  • Levels and pre-fader metering

    In the past I had always presumed the channel fader controlled the volume level of a softsynth. I know now that it obviously does not. It simply acts as a "faucet," so to speak. Meaning that increasing the fader level simply allows more of the synth's signal to pass.
    So my question is this: Understanding that it is the instrument itself which is actually generating the signal (and consequetly the db's) should I keep all my faders at 0.00 on my audio instrument tracks and adjust the instrument levels instead when I mix? It would seem to make sense.
    And in keeping with this method, as far as automation is concerned, would I be correct in assuming track volume should be automated via the instrument level?
    I'm trying to keep all of this in the context of how it would be done in a studio with "real" instruments. Where the volume level is the volume level and if you want it louder you play harder or you turn up your amp. You want it softer you play your instrument softer.
    I should add that this whole question/conundrum came up after I started recording with pre fader metering enabled and was quite surprised to see just how easy it is to clip a track (remembering of course that as long as no clipping is occuring at the master output I'm NOT actually clipping).

    I don't know where all this "fader fear" is coming from.
    In DSP terms, making something louder or quieter is simply a really simple DSP calculation. It doesn't matter whether you turn you softsynth down 3dB, or turn the fader down 3dB, the end result is exactly the same.
    The faders are there for easy controlling of levels. It's why mixers were invented and designed this way.
    I think these days someone reads a post on some esoteric audio forum about how their mix was so much better when they left the fader at 0dB in some obscure DAW back in the 90's, and translate that into "I must never use faders" or "I must never EQ" or "I must effectively work out my mix beforehand by my mic choice and positioning so all the signals magically combine into an artistic mix."
    I'm trying to keep all of this in the context of how it would be done
    in a studio with "real" instruments. Where the volume level is the
    volume level and if you want it louder you play harder or you turn
    up your amp.
    You completely lost me here. Learning about gain staging is Elementary Audio Engineering Class 2 (the one afer the "what is a signal", and "what is a transducer").
    You set the level of your recording device or mixer's input depending on the item you are recording, so the natural sound of whatever your source is corresponds to some nominal level for your recorder. It doesn't just magically happen on its own.
    If you're recording an instrument that doesn't put out much sound level, you use the mic preamp to boost the signal to an appropriate recording level. And if you're recording Concorde taking off, you adjust your preamp, probably turning it down or padding the signal, again so it fits the range of your recorder.
    Softsynths can put out a lot of level, and many preset designers don't pay much attention to volume levels in their patches. In addition, when you play a patch polyphonically, you're mixing together multiple signals (each of the notes you are playing) so you end up with higher levels still. It's good practice to pull down the output of the synth if it's too hot, but generally speaking, and avoiding getting into any "levels in Logic" complexities here, using the fader in Logic is exactly the same process.
    Faders don't bite. Use 'em.

Maybe you are looking for