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

Similar Messages

  • 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.

  • 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

  • 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

  • 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"

  • 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 have a photo I need to resize to 5 inches and 120 ppi how do I do that?

    I have a photo I need to email to do so I have to reduce it to 5 inches and 120 ppi how do I do that?

    Image > Size
    Use your size and resolution
    Recalculate your image
    OK.

  • 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.

  • Exclamation point and folder and nothing else

    Hi... I have an older 20 g iPod. I dropped it (only 3 feet but hard surface) last week and after that it malfunctioned and then stopped functioning. I have tried the reset several times without success. My Mac does not recognize it either in the information about this Mac or the disk utility or the iPod updater. I would love to be able to revive it but had assuimed it dead. I can get an apple on the screen when I do a reset and the battery icon shows that it is charging ... and then the exclamation point with the folder comes up.
    Any thoughts would be more than appreciated. Kay

    Hello,
    If a sad iPod icon or an exclamation point and folder icon appears on your iPod’s screen, or with sounds of clicking or HD whirring, it is usually the sign of a hard drive problem and you have the power to do something about it now. Your silver bullet of resolving your iPod issue – is to restore your iPod to factory settings.
    http://docs.info.apple.com/article.html?artnum=60983
    If you're having trouble, try these steps at different levels one at a time until the issue is resolved. These steps will often whip your iPod back into shape.
    Make sure you do all the following “TRYs”
    A. Try to wait 30 minutes while iPod is charging.
    B. Try another FireWire or USB through Dock Connector cable.
    C. Try another FireWire or USB port on your computer .
    D. Try to disconnect all devices from your computer's FireWire and USB ports.
    E. Try to download and install the latest version of iPod software and iTunes
    http://www.apple.com/ipod/download/
    http://www.apple.com/itunes/download/
    F. Try these five steps (known as the five Rs) and it would conquer most iPod issues.
    http://www.apple.com/support/ipod/five_rs/
    G. Try to put the iPod into Disk Mode if it fails to appear on the desktop
    http://docs.info.apple.com/article.html?artnum=93651
    If none of these steps address the issue, you may need to go to Intermediate level listed below in logical order. Check from the top of the lists to see if that is what keeping iPod from appearing on your computer in order for doing the Restore.
    Intermediate Level
    A. Try to connect your iPod with another computer with the iPod updater pre-installed.
    B. Still can’t see your iPod, put it in Disk Mode and connect with a computer, instead of doing a Restore on iPod Updater. Go and format the iPod instead.
    For Mac computer
    1. Open the disk utility, hope your iPod appears there (left hand side), highlight it
    2. Go to Tab “Partition”, click either “Delete” or “Partition”, if fails, skip this step and go to 3
    3. Go to Tab “Erase” , choose Volume Format as “MAC OS Extended (Journaled), and click Erase, again if fails, skip it and go to 4
    4. Same as step 3, but open the “Security Options....” and choose “Zero Out Data” before click Erase. It will take 1 to 2 hours to complete.
    5. Eject your iPod and do a Reset
    6. Open the iPod Updater and click “Restore”
    For Window computer
    Go to folder “My Computer”
    Hope you can see your iPod there and right click on the iPod
    Choose “Format”. Ensure the settings are at “Default” and that “Quick Format” is not checked
    Now select “Format”
    Eject your iPod and do a Reset
    Open the iPod Updater and click “Restore”
    In case you do not manage to do a “Format” on a window computer, try to use some 3rd party disk utility software, e.g.“Partition Magic”.
    C. Windows users having trouble with their iPods should locate a Mac user. In many cases when an iPod won't show up on a PC that it will show up on the Mac. Then it can be restored. When the PC user returns to his computer the iPod will be recognized by the PC, reformatted for the PC, and usable again. By the way, it works in reverse too. A Mac user often can get his iPod back by connecting it to a PC and restoring it.
    Tips
    a. It does not matter whether the format is completed or not, the key is to erase (or partly) the corrupted firmware files on the Hard Drive of the iPod. After that, when the iPod re-connected with a computer, it will be recognized as an fresh external hard drive, it will show up on the iPod updater.
    b. It is not a difficult issue for a Mac user to find a window base computer, for a PC user, if they can’t find any Mac user, they can go to a nearest Apple Shop for a favor.
    c. You may need to switch around the PC and Mac, try to do several attempts between “Format” and “Restore”
    http://discussions.apple.com/thread.jspa?messageID=2364921&#2364921
    Advance Level
    A. Diagnostic mode solution
    If you have tried trouble shooting your iPod to no avail after all the steps above, chances are your iPod has a hardware problem. The iPod's built-in Diagnostic Mode is a quick and easy way to determine if you have a "bad" iPod.
    You need to restart your iPod before putting it into Diagnostic Mode. Check that your hold switch is off by sliding the switch away from the headphone jack. Toggle it on and off to be safe.
    Press and hold the following combination of buttons simultaneously for approximately 10 seconds to reset the iPod.
    iPod 1G to 3G: "Menu" and "Play/Pause"
    iPod 4G+ (includes Photo, Nano, Video, and Mini): "Menu" and "Select"
    The Apple logo will appear and you should feel the hard drive spinning up. Press and hold the following sequence of buttons:
    iPod 1G to 3G: "REW", "FFW" and "Select"
    iPod 4G+ (includes Photo, Nano, Video, and Mini): "Back" and "Select"
    You will hear an audible chirp sound (3G models and higher) and the Apple logo should appear backwards. You are now in Diagnostic Mode. Navigate the list of tests using "REW" and "FFW". The scroll wheel will not function while in diagnostic mode. For further details on Diagnostic mode can be found at http://www.methodshop.com/mp3/ipodsupport/diagnosticmode/
    Try to do the 5in1, HDD R/W and HDD scan tests. Some successful cases have been reported after the running the few tests under the Diagnostic mode. In case it does not work in your case, and the scan tests reports show some errors then it proves your iPod has a hardware problem and it needs a repairing service.
    B. Format your iPod with a start disk
    I have not tried this solution myself, I heard that there were few successful cases that the users managed to get their iPod (you must put your iPod in disk mode before connecting with a computer) mounted by the computer, which was booted by a system startup disk. For Mac, you can use the Disk Utility (on the Tiger OS system disk), for PC user, you can use the window OS system disk. Try to find a way to reformat your iPod, again it does not matter which format (FAT32, NTFS or HFS+) you choose, the key is to erase the corrupted system files on the iPod. Then eject your iPod and do a Reset to switch out from Disk Mode. Reboot your computer at the normal way, connect your iPod back with it, open the iPod updater, and hopefully your iPod will appear there for the Restore.
    If none of these steps address the issue, your iPod may need to be repaired.
    Consider setting up a mail-in repair for your iPod http://depot.info.apple.com/ipod/
    Or visit your local Apple Retail Store http://www.apple.com/retail/
    In case your iPod is no longer covered by the warranty and you want to find a second repairing company, you can try iPodResQ at your own risk
    http://www.ipodresq.com/index.php
    Just in case that you are at the following situation
    Your iPod warranty is expired
    You don’t want to pay any service charges
    You are prepared to buy a new one
    You can’t accept the re-sell value of your broken iPod
    Rather than leave your iPod as paper-weight or throw it away.
    You can try the following, but again, only do it as your last resort and at your own risk.
    Warning ! – It may or may not manage to solve your problem, and with a risk that you may further damage your iPod, which end up as an expensive paper weight or you need to pay more higher repairing cost. Therefore, please re-consider again whether you want to try the next level
    Last Resort Level
    1. . Disconnecting the Hard Drive and battery inside the iPod – Warning !! Your iPod warranty will be waived once you open the iPod.
    In Hong Kong there are some electronic shops offering an iPod service for Sad iPod, the first thing they do is to open up the iPod’s case and disconnecting the battery and the Hard Drive from the main board of the iPod. Wait for 5-10 minutes and reconnecting them back. The reason behind which I can think of is to do a fully reset of a processor of the iPod. In case you want do it itself and you believe that you are good on fixing the electronics devices and have experience to deal with small bits of electronic parts, then you can read the following of how to open the iPod case for battery replacement (with pictures)
    http://www.kokopellimusic.us/KM_instructions.htm
    Have I tried this myself? No, I am afraid to do it myself as I am squeamish about tinkering inside electronic devices, I have few experiences that either I broke the parts (which are normally tiny or fragile) or failed to put the parts back to the main case. Therefore, I agree with suggestion to have it fixed by a Pro.
    2. Do a search on Google and some topics on this discussion forum about “Sad iPod”
    What should I do with my iPod? Send it or keep it?
    http://discussions.apple.com/thread.jspa?threadID=469080&tstart=0
    Strange error on iPod (probably death)
    http://discussions.apple.com/thread.jspa?threadID=435160&start=0&tstart=0
    Sad Face on iPod for no apparent reason
    http://discussions.apple.com/thread.jspa?threadID=336342&start=0&tstart=0
    Meeting the Sad iPod icon
    http://askpang.typepad.com/relevanthistory/2004/11/meeting_thesad.html#comment-10519524
    Sad faced iPod, but my computer won’t recognize it?
    http://discussions.apple.com/thread.jspa?messageID=2236095#2236095
    iPod Photo: unhappy icon + warranty question
    http://discussions.apple.com/thread.jspa?messageID=2233746#2233746
    4th Gen iPod Users - are we all having the same problem?
    http://discussions.apple.com/message.jspa?messageID=2235623#2235623
    Low Battery, and clicking sounds
    http://discussions.apple.com/thread.jspa?messageID=2237714#2237714
    Sad faced iPod, but my computer won’t recognize it
    http://discussions.apple.com/thread.jspa?messageID=2242018#2242018
    Sad iPod solution
    http://discussions.apple.com/thread.jspa?threadID=412033&tstart=0
    I am not suggesting that you should follow as well, but just read them as your reference. You are the person to make the call.

  • HT4259 I have an 802.11n base and extender and still cannot get a good signal 80-90 ft away . Why?

    I have an 802.11n base and extender and still cannot get a good signal 80-90 ft away . Why?

    Hardwire is always recommended because there is virtually no signal loss in a wire....at least up to 300 feet or so.
    Another advantage of using Ethernet cable...if you can...is that you can locate the AirPort Express where it is most needed.
    If it extends using wireless only, it pretty much needs to be located about half the distance from the main router and the general area that needs more coverage.
    I like to use WiFi Explorer since it displays SNR (Signal to Noise) readings, which are the best way to evaluate signal quality.
    Mac App Store - WiFi Explorer
    If the signal is varying constantly, something is causing it to do so....assuming that the AirPorts are functioning correctly.
    Cordless phones are a huge problem for wireless networks.  You want to try to figure out if the phones are causing a problem as a first troubleshooting step.
    That is why I suggested that you turn off the phones for an hour or two and watch the network to see how it behaves.  If the signal stops fluctuating....that is a good clue that the phones are interfering with the wireless signal.

  • I got a new macbook pro and am having a great deal of trouble with it from the start!  But other than that, which I will get to, I have had macs since the one following Lisa and I am a diehard apple fan, yet now with the macbook pro and Lion and its

    I could not download the upgrade to the mountain lion. my updates were taking an enormous amount of time for other programs. When I finally got the indication it was waiting to be downloaded I had to shut down. It was after 2 am and I was practically unconscious already with all the trauma of trying to find the right place for the redeem of the code to open the password. It was all confusing and poorly communicated by Apple. The terrible deterioration of Apple's written communications by non-American techies who can't write for easy understanding, even by this old time tech afficianado is heart-breaking and frustrating is putting the effects mildly.  I have not yet gone back to the mac book pro to finish the job. I am too frustrated and unhappy with the new system.  Also, I found out the hard way that my time capsule saved files on the macbook Snow Leopard, which still works fine after 6 years of use, is locked in that external drive and I cannot transfer the items except one by one or by folders on that computer to a DVD or to a flash drive, to mport to this new computer. Because the systems are not the same, I can't access the files automatically. I fear I will have further problems with the mountain lion vs. lion in seeing those files. What can I do? What should I do?  I am afraid to designate an external hard drive I purchased with the new laptop for the time capsule because then it won't work with any other computer.  I read of terrible incompatibility issues and crashes and things not working right once Mountain Lion was installed and now I am terrified they will happen to me. I just wanted the computer to be as easy to use as all the other macs I have and have had and now it is more like a horribly complicated and difficult Microsoft IBM compatible PC. I hate this. Perhaps Apple wanted to appeal to new Apple users and tried to make them comfortable while disregarding the comfort of loyal Apple users?  It's a sell-out. Meanwhile, I have to get senior tech people because the kids who try to answer my questions much of the time don't interpret what i am telling them and it takes a pro.  Perhaps the kids can answer what I should do in preferenced to scroll the screen, since the scroll indicators disappear and I can't see them and have to resort to using the arrows on the keyboard, which is not the way I like to work.    Please advise me about all of these things!

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    What file format did you export it to?

  • PMS and Training and Event Management

    Hi Gurus,
    Our one the of the client implementing PMS and Training and Event Management.
    Could anyone suggest me what are the questions need to be asked in initial meeting with the client.
    and if anyone has configuration documents on PMS and Training and Event management please forward to me,
    my id would be [email protected]
    Regards,
    Rajesh Soma 

    The prerequisites of PMS is OM and PA is mandatory,
    PMS is just like an interaction between the manager and the employees in an enterprise, based
    On his work they are going to put some rating etc.
      In the standard system employee called as “Appraise” Manager called as an “Appraiser” and Manager’s Manager called as Higher level manager “Part Appraiser “ can be a self-peer & customer they can save & provide their Comments to  the “Appraiser”
    First you take the requirement form client side what are the process and how Appraisal system in client then you have to prepare one sheet like Preparation ,Planning,Process
    for business functions and other check below :-
    HCM, Performance Management (Flexible) 01 - SAP Documentation
    HCM, Performance Management (Predefined) 03 - SAP Documentation
    check below once :-
    Tcodes for PMS Basic Setting
    OOHAP_BASIC      Basic Appraisal Template Settings
    OOHAP_CATEGORY      Appraisal Category Settings
    OOHAP_CAT_GROUP Category Group Settings
    OOHAP_SETTINGS_PA PA: Settings
    OOHAP_VALUE_TYPE Standard Value Lists
    T codes for PMS Process
    PHAP_ADMIN     Administrator - Appraisal Document
    PHAP_CATALOG     Appraisal Template Catalog
    PHAP_CHANGE     Change Appraisal Document
    PHAP_CREATE     Create Appraisal
    PHAP_PREPARE     Prepare Appraisal Documents
    PHAP_SEARCH     Evaluate Appraisal Document
    start your work with above things any other post here again ......

  • Is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    No

Maybe you are looking for

  • In itunes, can i save my music on another hard drive other than C?

    i have the program installed on my computer, i would like the music to be saved on another hard drive other than C, is there a way to do that within itunes?

  • Search help in dialog modules

    Hello gurus I struck with a problem while designing the search help .  The problem is described as below Three Screen field in my screen namely Itab1-vkorg Itab1-kunnr Itab1-vbeln My Screen flow logic : PROCESS AFTER INPUT.   MODULE USER_COMMAND_0100

  • Log and transfer and fcp 6 keep quitting on me

    I use card reader. Brand is Transcend. is that because of my laptop has 2 gb? or should I reinstall fcp? Help... because i am leaving for project tomorrow morning.

  • I've lost the CS6 installation CD

    I have CS6 but have lost the installation CD. It's on my PC and I'd like it on my laptop. I have tried to copy the files from my PC to the laptop Program Files, and then install each programme from there, but it gives me an error "Error:16". Can you

  • [SOLVED] `makepkg` doesn't merge fetched git changes

    Hey there, I'm using this PKGBUILD: # Maintainer: Dmitry Korzhevin <dkorzhevin AT gmail DOT com> # Contributor: Mark Foxwell <[email protected]> # Contributor: Licia Todd <tigrmesh at aol dot com> # Contributor: Tim Zebulla <amon at faumrahrer dot de