Get resolution of double?

When converting a string to double the result prints out as 0.000000. Of course this is because the default resolution is to six digits. Using 10 digits of resolution gives 0.0000000247. What is the function or the best way to detect the length of this double and print it? (I wish the ".10f" could use a variable in place of 10)
example:
char data[]={"+2.47600E-08"};
double result;
result=atof(data);
DebugPrintf("%f\n",result);
DebugPrintf("%.10f\n",result);
Thanks, and sorry for the newbie question
Solved!
Go to Solution.

As per your question #2, you cannot do this with DebugPrintf, but using Fmt from the Formatting and I/O Library you can have a parametric number of decimal places in the string representation of a number: see Using Asterisks (*) Instead of Constants in Format Specifiers argument in this help topic.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • Satellite A300-1LT PSAGCE - Cant get resolution higher than 1280x800 on external monitor

    I have toshiba Satellite A300-1LT PSAGCE, and I connected additional profeccional monitor LP3065, but I cant get resolution higher than 1280x800, and this only works over HDMI, via VGA output i get only black screen.
    Any suggestions?

    Hi
    As far as I know the internal LCD supports this resolution:
    800x600 16bit/32bit(Clean stretch)
    1024x768 16bit/32bit(Clean stretch)
    1280x800(W) 16bit/32bit
    For _external_ monitor these resolutions are supported:
    800x600 16bit/32bit colors(Depending on CRT)
    1024x768 16bit/32bit colors(Depending on CRT)
    1280x1024 16bit/32bit colors(Depending on CRT)
    1440x900(W) 16bit/32bit colors(Depending on CRT)
    1600x1200 16bit/32bit colors(Depending on CRT)
    1680x1050 16bit/32bit colors(Depending on CRT)
    1920x1200(W) 16bit/32bit colors(Depending on CRT)
    1920x1440 16bit/32bit colors(Depending on CRT)
    2048x1536 16bit/32bit colors(Depending on CRT)
    Note: the vertical refresh rate is also limited to the each resolution:
    800x600 85Hz (Depending on CRT)
    1024x768 85Hz (Depending on CRT)
    1280x1024 85Hz (Depending on CRT)
    1440x900(W) 60Hz (Depending on CRT)
    1600x1200 85Hz (Depending on CRT)
    1680x1050 60Hz (Depending on CRT)
    1920x1200(W) 60Hz (Depending on CRT)
    1920x1440 75Hz(Depending on CRT)
    2048x1536 60Hz(Depending on CRT)

  • How do I get rid of doubles of photos sent by an iPhone? When I try to trash them, I get the message 'locked' Thank you.

    how do I get rid of doubles of photos sent by an iPhone? When I try to trash them, I get the message 'locked' Thank you.

    Hi
    Thank you for the reply.
    No I have not deleted anything, this all happened automatically when the trial period ended.
    Other than an old version of Photoshop (version 7, for which I do have a serial number, I don't have any other Adobe software - just the reader which is now not working)
    I was trialling Dreamwever but couldn't get started with it so am paying someone else to set up the website using Wordpress.
    David

  • How to get rid of double tap on my iphone 5c

    how to get rid of double tap on my iphone 5c

    Settings App > Music > Show All Music > turn toggle off. Restart music app. Or is that what you tried?
    If so, go to Settings > Cellular > switch music and iTunes off. Keep in mind that you'll need to turn this back on to shop/download from iTunes.

  • How do I get rid of double entries in my Contacts?

    I sync a 3rd party software, DejaOffice, from my iPad to my PC via Outlook. (DejaOffice is an integrated program with Calendar, Contacts, To-do List, and other features.) DejaOffice allows for syncing to Apple Calendar & Contacts. (Synicing to Contacts is especially important on my iPhone so it recognizes incoming calls in call display.) When I sync to Apple Calendar & Contacts, I often get double entries in both the Apple software, and DejaOffice. So, I have turned off syncing to Apple Contacts and Calendar from DejaOffice. I have just spent an hour deleting the double/triple entries in Contacts in my iCloud from my PC, and want to push the corrected list to my iPad & iPhone 5. I can't see how to delete the contacts in iPad or iPhone (which still have double & triple entries). If I turn on iCloud Contacts and Calendar in either device, it tells me it will merge the data, and I don't want the double entries any more, so I'd like to delete all contacts on iPad & iPhone, and then push the corrected iCloud list to both devices so they are all on the same page. I can't seem to figure out how to delete my Contacts or Calendar entries on iPad or iPhone so the merge only contains the corrected list from the iCloud. Can anyone help me with this?

    First, export your contact from iCloud.com and save them on your computer in a safe spot some where (like you desktop).  Use this to help you do this: http://support.apple.com/kb/PH3606
    Next, on both of your devices, go to Settings > iCloud and turn on contacts and select Merge. Then turn off contacts and select 'Delete form my [device]' when prompted.
    Now go back to iCloud.com and select a contact (yes they will all be messed up again) and select Command+A on a Mac or Control+A on a PC to select all of the contacts.  Tap the delete key on your keyboard (or right click /control click a contact and select delete).
    You iPhone, iPad and iCloud.com should not be empty for contacts.
    Go back to Settings > iCloud on both devices and turn on contacts again (you should not see merge this time).
    Next, go back to iCloud.com and import your contacts (those exported .vcards).  You can either drag and drop them into the empty contacts list in your web browser, or you can use the gear icon to import.
    You cleaned up contacts should import correctly into iCloud.com and sync to both of your devices.
    Good luck.

  • How can I get Mail to double-space text?

    I've tried everything I can think of to get Mail to display text with double-spaced lines, ie, with blank lines between every line.  (I need to do this to meet submission requirements for my work).  BTW, I'm talking about  a string of up to 60,000 characters including spaces, so some form of copy and paste is the only way I can see to go.  I've tried: (1) pasting duble-spaced text created by Word in a .doc file into mail messages, (2) ditto by TextEdit in an .rtf file that displays and prints doble-spaced, but shows up in Mail single-spaced with things like centering misssing, too, (3) ditto by TextEdit in a .txt file that displays sngle-sapced.    Everything shows up in Mail single-spaced, and I've never been able to find a way within Mail itself to format single-spaced text with space between the lines.  Is this an intrinsic omission?

    Why not just use a white fill for fields completed on a computer?

  • How do I get rid of double scroll bars when integrating a tumblr blog on my muse website?

    Hi there,
    Iim having problems getting rid of the double scrollbar I get when integrating a tumblr blog to my muse website? Is there a way to integrate the blog so I just get 1 scroll bar- just like on all other pages?
    Thank you

    Im not quite sure I seem to get it right. How do you suggest I change this iframe that I have imbedded?
    <iframe width="100%" height=1500px" src="http://xxxxxxxxxxxxxxxxx.tumblr.com" frameborder="0"  overflow:hidden;"></iframe>
    Thank you!

  • Get Resolution Screen in Java

    I want to know what the resolution is of the people using my application. Can I maximize my window? Or can I get the users screen-resolution? In case it is a simple command, could you please give me a sample code?
    Greetz and thanks in advance,
    Kanarip

    private void init() throws java.lang.Exception{
    frmDisplay = new javax.swing.JFrame();
    frmDisplay.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);
    frmDisplay.setCursor(curWait);
    frmDisplay.setName("frmDisplay");
    frmDisplay.setTitle("Cost Report Imaging version 2.0");
    frmDisplay.setBounds(0, 0, (int)(java.awt.Toolkit.getDefaultToolkit().getScreenSize().getWidth() * fScaleFactor), java.awt.Toolkit.getDefaultToolkit().getScreenSize().height);
    java.awt.Container cp = frmDisplay.getContentPane();
    // cp.setLayout(null);
    jtpDisplay = new javax.swing.JTabbedPane();
    cp.add(jtpDisplay);
    // jtpDisplay.setLayout(null);
    // jtpDisplay.setSize(cp.getWidth(), cp.getHeight() - 80);
    }//end init()

  • Nvidia-settings getting resolution wrong (again)

    some times after booting, the resolution of my screens (or 1 of them) will be wrong, i tried manualy editing the xorg file, and all that achieved was disabling me 2nd screen)
    i dont think its too much to ask for to have a computer that wont randomly get the resolution wrong randomly?
    any known fixes?
    thanks Markp1989

    I have a problem like this as well.
    Using the NVIDIA driver both my monitors have the meta mode set to 1600x900 in xorg.conf.
    However the first monitor displays at 1280x1024. It changed when I swapped round my monitors to different DVI ports on the graphics card. Previously, with exactly the same xorg.conf, both monitors displayed at 1600x900.
    No xrandr support makes it hard to fix these things.
    Here is my xorg.conf just in case:
    Section "ServerLayout"
        Identifier     "Layout0"
        Screen         0  "Screen0" 0 0
        Screen         1  "Screen1" 1600 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
    EndSection
    Section "ServerFlags"
        Option         "DontZap"  "false"
        Option         "Xinerama" "1"
        Option         "AllowEmptyInput" "False"
        Option         "AutoAddDevices" "False"
        Option         "AutoEnableDevices" "False"
    EndSection
    Section "InputDevice"
        # generated from default
        Identifier     "Mouse0"
        Driver         "mouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/psaux"
        Option         "Emulate3Buttons" "no"
        Option         "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
        # generated from default
        Identifier     "Keyboard0"
        Driver         "kbd"
        Option         "XkbLayout"     "gb"
    EndSection
    Section "Monitor"
        Identifier     "right"
        VendorName     "Unknown"
        ModelName      "Samsung SyncMaster"
        HorizSync       30.0 - 65.0
        VertRefresh     56.0 - 60.0
        Option         "DPMS"
    EndSection
    Section "Monitor"
        Identifier     "left"
        VendorName     "Unknown"
        ModelName      "Samsung SyncMaster"
        HorizSync       30.0 - 65.0
        VertRefresh     56.0 - 60.0
        Option          "RandRRotation" "on"
        Option          "Rotate" "CW"
    EndSection
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce 9500 GT"
        BusID          "PCI:1:0:0"
        Screen          0
    EndSection
    Section "Device"
        Identifier     "Device1"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce 9500 GT"
        BusID          "PCI:1:0:0"
        Screen          1
    EndSection
    Section "Screen"
    # Removed Option "TwinView" "1"
    # Removed Option "metamodes" "DFP-0: 1600x900 +1600+0, DFP-1: 1600x900 +0+0"
        Option        "AddARGBGLXVisuals" "True"
        Identifier     "Screen0"
        Device         "Device0"
        Monitor        "right"
        DefaultDepth    24
        Option         "TwinView" "0"
        Option         "metamodes" "DFP-0: 1600x900 +0+0"
        SubSection     "Display"
            Depth       24
        EndSubSection
    EndSection
    Section "Screen"
        Option         "AddARGBGLXVisuals"  "True"
        Identifier     "Screen1"
        Device         "Device1"
        Monitor        "left"
        DefaultDepth    24
        Option         "TwinView" "0"
        Option         "metamodes" "DFP-1: 1600x900 +0+0"
        SubSection     "Display"
            Depth       24
        EndSubSection
    EndSection
    Last edited by clanger (2010-01-08 14:39:23)

  • Check resolution of double

    If I have a double value, how can I check that the double meets a specified resolution.
    ie. if I have a specified resolution of 0.02, how can I verify that a double value is evenly divisible by that resolution.
    I am dealing with a JTextField so I can verify that the text value does not contain more decimal places than would be allowed by the resolution.
    Thanks.

    I was thinking if the resolution was passed in as a string "0.02" I could determine that the number of allowed decimals is 2. Then if the text field is "12.24" I could do the following.
    if ( Math.round(Double.parseDouble (getText()) * Math.pow (10, numDecimals)) % Math.round (resolution * Math.pow (10, numDecimals)) == 0)
        // text is validis there a better way then passing in the resolution as a String? I suppose I could pass in the resolution a a double and pass in an int the represents the number of decimals.
    Any thoughts?

  • UIScrollView get lock after double tap

    Hi ,
    I am having some issue with UIScrollView or its derived class .
    in my application I have a UITableView were the UITableCell contains UIImageView
    this image implement the message for touchBegin:: so they can do stuff . so far so good I am happy
    the problem is that a lot of trim when the touchBegin event is finish my Table ( UIScrollView ) is not responding to scroll anymore , sometime with some random click I can unLock it but not always .
    in an other view I use the UIScrollView directly and there the same , single or double tap just lock the view for no clear reason .
    am I missing something , I found some other post about similar problem , but this is really really anoying , so I am surprise that I can see more chatter .
    I can reproduce the same with one of the sample provided .
    anyone with a tip ? a work around the problem would do just fine
    thanks
    damien

    I have had similar issues while trying to get a ScrollView with buttons working. The ScrollView did not react to swipe gestures that start on a button. A UIControl gets the events a ScrollView needs for scrolling. A UIResponder object with userInteractionEnabled set to YES might be treated the same way.
    To get scrolling working I had to do the folowing:
    - Subclass the UIScrollView and implement hitTest (with pointInside) to always return self as the first responder.
    - In the same subclass implement touchesShouldCancelInContentView to always return YES.
    - Set the canCancelContentTouches propery to YES to make the ScrollView actually test if touches Should Cancel In ContentView.
    I have no touchesBegan, touchesMoved or any other event handling code in the ScrollView subclass. The ScrollView itself takes care of that.
    The documentation on canCancelContentTouches is an 'if ... and ... if ... then ... and ... else if ... then ..' construction. I needed the comments in the ScrollView headerfile to get a better impression about what is going on between ScrollViews and the UIResponders within.
    I hope this will help you out.

  • After downloading the update iOS 6.1 I can no longer get the game doubled own casino to load. What can I do to get the casino game to load?

    After downloading the apple update for iOS 6.0.1 I can no longer get the double down casino app to load. What can I do?

    1) reset the iPad. Hold power home button until screen goes black, apple logo appears-release
    2) delete the app, reinstall.
    3) wait for an update to the app

  • Editable ALV- Quantity field value is getting changed while double clicking

    Hi all,
         I have created Editable ALV grid using Class concepts. Quantity field is editable in dat. but after changing value and if im double clicking on that field, value is getting changed. eg: 45 is changing to .045. How can i resolve this problem.
    Could u plz help.

    Hi Anu,
    One question from my side.
    U have displayed the ALV.In that grid u have quantity field.U have changed the value of that field to 45.
    When u press enter the value has been changed to .045.Is this u r problem.
    U can do onething anu.
    Declare one varaible with the local field.
    Pass u r quantity field value into that variable.
    While displaying thriugh SET_TABLE_FIRST_DISPLAY in your internal table pass this variable.
    It will solve u r problem.I think.
    Let me if yu have any problem
    IF u want u can refer to the program BCALV_EDIT* in se38.
    There also u have needful info
    Thanks,

  • How can I get lines to double space?

    I have a client who wants a form you can fill in digitally or by hand. We have a signed off design and I'm just in the process of making it editable.
    The only issue is they wanted lines in the boxes for the people who fill it in by hand but now these lines right through the middle of the text if you fill it in digitally is there any way I can get the text to be double spaced to sort this?
    Thank You

    Why not just use a white fill for fields completed on a computer?

  • How to get rid of double quotes from generated DDL

    When you click on a table and then SQL, the genrated DLL script has double quotes around the schema name, tablename, column name...... Is there a way to get rid of them ?

    I don't personally care about backward compatibility ... I am not going backwards. I hate the quotes, they take space, we DO NOT use spaces in our naming conventions. And I do NOT want the user's name in the code generated. As it is, I have to export what SQL Developer says, strip out the quotes, reformat the whole thing, then reload it.
    So ... is there a way to turn off this "feature" in SQL Developer? I looked in Preferences but could find no reference to it.
    Thanks, whomever, for your response / time.
    SM

Maybe you are looking for

  • Syncing iphone on more than one computer (not at same time!)

    I am travelling and had to replace my iphone.  The laptop I am travelling with has the same itunes account (and thus library) as my main computer at home. Instead of manually downloading the purchased music I have in the icloud (which is not the comp

  • Mouse goes dead when printer powered up

    I have a Beige, but recently was given an early G3 iMac, 233mhz processor, 288mb ram. I successfully installed OS 9.2.2 (starting with an OS 9.1 iMac disk..........the iMac had 8.6 on it) and updated the firmware; removed the hard drive, hooked it up

  • Process Tax in E-Commerce Web Form

    Hi Everyone, This is a bit of a hairy one, I've had a chat with one of the support guys and I thought I'd run the issue past the forum to see if anyone had any ideas about it. We've got a client who has a webform with credit card processing taking pl

  • Oversaturated output on HDTV

    I connect my MBP via DVI to my HDTV. It's a rear-projection Toshiba. I've calibrated it to the best of my ability, but I still get blooming where bright white touches dark. It blooms to one side only. When I go through calibration, I can never really

  • My Photoshop CS6 wont update to Photoshop(R) CS6 13.0.1.3    I am getting errowmassage

    My Photoshop CS6 wont update to Photoshop(R) CS6 13.0.1.3    I am getting errowmassage.