Rounding After a Certain Number of Characters

Hi,
I'm looking for a way to round a number off after a certain number of characters. I'm not looking to round a number off after, say, the third or fourth decimal place, but after the third or fourth number. For example, If I round off after 3 characters, then:
19235.6578 goes to 19200
1.95723 goes to 1.96
How would I go about doing this? Any help is much appreciated.
Thanks,
JOD8FY

Thanks for your reply. What I'm really trying to do is round off an answer to the correct number of significant figures. According to the rules for multiplying significant figures, the answer will have the same number of sig figs as the number in the operation with the least number of sig figs. To do this, what I thought I would do is find the length() of the least precise number in the operation and then round off the answer after that many characters. So, if the least precise number has four sig figs, the answer will get rounded off after the fourth number. Hope this makes what I want to do a little clearer; sorry for being vague.
JOD8FY

Similar Messages

  • VST edit screen not visible after a certain number in a session

    Hi folks, I have a small strange problem. After I add a certain number of VSTs to a project, I can't see the GUI of the VST anymore. It's there, and working, but I can't edit any parameters because I can't see them anymore. Anyone with this problem and why it happens?
    It seems to be worst with new Waves plugins (I have Gold bundle) but it's general with any VST. Strangely, it doesn't happen with DirectX plugins at all.
    Lenovo laptop, i5, using firepod.

    The main screen is scrollable. The sub screen does not need to be. The box frame has been expanded to allow space for the new objects and the entire new space is visable. Only the objects located in the lower portion of the box are not visible.

  • Reading in a certain number of characters from a file.

    Hi guys,
    I need some pointers on how to read in a specified number of characters from a text file.For example,how would I read in the first 100 characters to an array from a text file with an unspecfied number of characters (more than 100 rather than less!).
    At present I am getting code errors being thrown due to reading in beyond the array size ie
    java.lang.ArrayIndexOutOfBoundsException: 100.

    post more code , this exception tells me nothing
    without seeing what you are actually doing.
    public String getText (String file)//textfile to be analyzed will be inputted as argument 150407 0356
       //15042007 0612 Check notes on overloaded getText method below.
           int temp;
           inputFile = file;
           int i=0;
                try
                    BufferedReader bGetFile = new BufferedReader (new FileReader(inputFile));
                    while ((temp=bGetFile.read())!=-1)
                        textFromFile[i] = (char)temp;
                        i++;
                    /*for (int j=0;j<MAX;j++)
                        System.out.print(textFromFile[j]);//25042007 0208.For Testing purposes
                    inputText=new String(textFromFile).trim();
                    bGetFile.close();
                catch (IOException e)
                    System.out.println (" ");
                    System.out.println ("Sorry.An error occurred while trying to read from the input file.Unable to proceed!");
                System.out.println ("Processing the input text file "); //25042007 2318 being used for debugging purposes.          
                return inputText;
        }If the file being read is greater than MAX characters it will throw the exception mentioned.What I would like to do is read in MAX characters and discard the rest.

  • How can I limit running headers to a certain number of characters?

    I have a client that has a few very long headings in their book. The headings can't be re-written. The immediate problem is that I have running headers in this book, so when Frame is using one of these long headings for the running header, the running header is garbled. The text runs all the way to the end of the line, then it starts over at the beginning of the line over the words that are already there.
    Is there a method to limit the number of characters in a running header (or does someone know of another tactic) to force the running headers to display suitably?
    I'm using Frame 9 on Windows 8. (It also occurs on Windows 7 with Frame 9.)
    Thanks in advance for your help!
    Karen

    If the MasterPage frame that contains the RHF is only one row high, and suitably short, I would expect lone text string to get clipped at the frame edge. Problem is, that might be in the middle of a character.
    I'd be tempted to use a variation on the RHF trick described lately at:
    http://forums.adobe.com/message/5730734#5730734
    where each Heading1 has an anchored frame normally visible only to the author, containing the actual Heading1.RHF text picked for use in the header.
    For most instances, each Heading1.RHF could just be an Xref to the full Heading1.
    For the troublesome long Heading1's, the Heading1.RHF text would be hand-typed and shortened suitably.
    > The headings can't be re-written.
    In this hack, they aren't.
    > I have a client ...
    That's always an easy problem to fix .
    If the anchored frames become an issue, you can also use the Marker trick described by Arnis in that same referenced thread. Markers take up no visible space, but might be less obvious for future document stewards to puzzle out. That person might be you .

  • Mapping question: How to only pass on a certain number of characters?

    I'm mapping a phone number from the idoc to the XML file.
    I only want to send the first 12 characters of a phone number.
    For example, if the phone comes in as, "123-456-7890 Ext 44", I only want to send "123-456-7890".
    I thought I could use the substring function(0 to 12), but I get an error if the phone is not exacly 12 characters long.
    I need to be able to process the value of the phone number if it's:
    Blank
    Has text like "no phone".
    1234567890
    123-456-7890
    Is there a std function to do this, or would I need a custom java udf?
    Thanks,
    jeff

    Jeff,
    you can write a UDF with the following conditions.
    I am not so good at Java programming. Hence I am giving you the logic try to draft a UDF using Java.
    for(i=0; i<=11; i++) //worst case you are interested in first 12 values in the incoming payload incl "-"
    1. If the read character is one of the alphabets or "" do not pass //to take care of blank or no phone or NA
    2. If the read character is - do not pass.
    3. If the read value is digit, pass it
    if the concatenated string == 10 then pass it to target field.
    if concatenated string =="", do not pass or take corresponding action.
    this ways, the "NA" or "no Phone" or "" will be filtered out
    Hope its useful
    Venkat.

  • Air for Android drops cookies after a certain number of requests.

    I opened up a bug: https://bugbase.adobe.com/index.cfm?event=bug&id=3360647 because it essentially makes it impossible to deploy our app on the android market place.
    Essentially the following occurs: Our Air app authenticates (via HTTP) and the session cookie is set. At this point we make a bunch of requests to the server with that cookie. Everything works for a while until Android (and only Android, as we don't see this behaviour on iOS or Playbook) decides to drop the cookie at some random time, causing the server to reject the request.
    Has anyone come across this?  Any ideas for mitigating strategies? How does Air on Adroid handles cookies? Workarounds? (we use httpservice and remoteobject in our app).

    Also this problem is from an edge server. I tested the origin server and it works fine. It can reach over 1000 connections.

  • Sync halts after certain number

    My 160G ipod today would sync fine, but after a certain number of entries, would stop. The screen on iPod changes from circling sync to steady 'Connected: Eject before disconnecting'. Does not go anywhere. I have already tried the following:
    1) the 5 Rs
    2) Changing cables
    3) Repeat the 5 Rs several times. In fact it freezes iTunes when I do a restore
    4) After one of the restores, I set it to manual sync, and selected a few tracks to sync. It would do the same.
    Please assist.
    Thanks,

    I have a classic 160
    It will not load more than 4.9 gig keeps telling me it is full.
    I had Apple replace and I just received it an it will only load 1.9 gig with the same error. I've tried on several different computers with the same results. I'm running out of thing to try. The thing is when I first got it back in March it worked great. Then ITunes asked to update and I allowed it to do so and it has not worked since. I've tried re installing ITunes changing the library changing the drive letter and nothing seems to work. I'm at a loss I think I may have another unit with a bad drive. I want my IPod back and working
    Ant help anyone can offer would be greatly appreciated.
    Thanks
    Doc

  • Removing characters from string after a certain point

    Im very new to java programming, so if this is a realy stupid question, please forgive me
    I want to remove all the characters in my string that are after a certain character, such as a backslash. eg: if i have string called "myString" and it contains this:
    109072\We Are The Champions\GEMINI
    205305\We Are The Champions\Queen
    4416\We Are The Champions\A Knight's Tale
    a00022723\We Are The Champions\GREEN DAYi would like to remove all the characters after the first slash (109072*\*We...) leaving the string as "109072"
    the main problem is that the number of characters before and after is not the always the same, and there is often letters in the string i want, so it cant be separated by removing all letters and leaving the numbers
    Is there any way that this can be done?
    Thanks in advance for all help.

    You must learn to use the Javadoc for the standard classes. You can download it or reference it on line. For example [http://java.sun.com/javase/6/docs/api/java/lang/String.html|http://java.sun.com/javase/6/docs/api/java/lang/String.html].

  • I'm using acrobat pro in my project after debuging the project and after opening a certain number of PDF files I receive the message: the maximum number of files opened has been reached, you have to close some files to continu.even doing that, I steel rec

    I'm using acrobat pro in my project after debuging the project and after opening a certain number of PDF files I receive the message: the maximum number of files opened has been reached, you have to close some files to continu.even doing that, I steel receive the same message.Some one can tel what to do please? Thanks

    Hi Memalyn
    Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
    My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
    If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
    Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
    Let us know what you find out, and if you manage to get your space back.
    Matt

  • After upgrading to Firefox 8.0.1, now on at least one website I use, it limits the number of characters that I can type in a text box to 275, is there a way to fix this?

    After upgrading to Firefox 8.0.1, now on at least one website I use, it limits the number of characters that I can type in a text box to 275, is there a way to fix this?

    That may be part of the coding that the web page is using.
    *https://developer.mozilla.org/en/HTML/element/input

  • USING WEBUTIL TO READ TEXT FILE INTO TABLE HANGS AFTER CERTAIN NUMBER OF RE

    Dear
    when we use webutil to retrieve data from text file into database table
    (using text_io) it hangs after certain number of records ( approx. 1300
    records) while the total number of records to be inserted in the table exceeds
    12000 records while it works properly on forms6i with the normal text_io any
    help please...?
    thanks and regards

    WebUtil uploads the files as Binary - so yes you could have some issues if you have a Unix host - however, that would only mean that there is an extra character to trim off of the end of the line read by Text_io.

  • Report to get total number of users logged in after a certain date

    Hi,
    Is there any report available in SIM which can give us the record of the users who logged into it after a certain date.
    I tried to use Historical User Changes Report but in this report there is an mandotory aatribute 'object Type' which filters the search based on its value. For example if we will give 'a' in the object type then the search result will contain only those users whouse accountID contain the character 'a'.
    But my requirement is to fetch all the logged in users after a certain date. Is there any other report available for the same.
    Thanks.

    Try Today's Activity Report...
    In the Actions select login
    In the Report Timeline there's calendar to select the date

  • Coding - returning the number of characters in a text box.

    I am in the process of creating a cell phone simulation/animation in Edge Animate CC for use in a Captivate course. Basically, when a user clicks on number buttons on the virtual keypad, it displays the numbers in a text box , just like an actual cell phone would display the phone number on the screen as a caller is dialing. So, the user would click seven buttons and a seven-digit phone number appears on the virtual phone screen.  This part of my animation works great and all seven digits appear, but I would like to modify the code so that a hyphen appears after the third button clicked. This way, the output better resembles an actual phone number instead of just a string of seven digits.
    Here is an example of the code I currently have assigned to the #2 button on the virtual keypad:
    var text = sym.$("PhoneNum").html();
    text = text + 2;
    sym.$("PhoneNum").html(text);
    PhoneNum is the name of my text box on the stage where the digits appear as each keypad button is clicked.
    In order to incorporate the hyphen after the third button clicked, I need to somehow return the current number of characters in the PhoneNum text box, then create an if/else scenario that applies the hyphen after the third button clicked.
    Does anyone know how I can use either JavaScript or jQuery to return the number of characters currently in the PhoneNum text box?

    No problem!
    Basically the thing to remember is that unless you are needing to pass html to the object, you can use text() instead. text() also gives you the raw text without any html formatting (so you can assume what .html() would return)

  • Is there a constaint on number of characters returned in resultset?

    Hello,
    I am trying to retrieve a field from database which is 5000 - 6000 character long using the rs.getString() method. (Data stored is XML). When the number of characters exceed 4096, the getString() returns only 4096 characters. The rest is ignored even though data is available. After getting the XML, I parse it again.
    This standalone program fails at this point since the retrieved data (XML) is not complete.
    Any ideas?
    Thanks,
    Des

    Any ideas?Yeah. One idea would be to post JDBC questions in the JDBC forum.
    I use the getAsciiStream() method of ResultSet to give me an InputStream from which I can read the column.
    PC&#178;

  • Can a sprite become visible after a certain amount of user inactivity?

    Can a sprite become visible after a certain amount of user inactivity? like a timer triggering an event?

    Hi Kevin,
    You can look at the on timeOut event. (This is not to be confused with timeOut objects)
    There are a number of related properties, which date back from the early days of Director, and which seem to have been omitted from recent versions of the documentation, even though they still function. I give them here with their original names (prior to Director 10):
    the timeOutKeyDown
    the timeOutLapsed
    the timeOutLength
    the timeOutMouse
    the timeOutPlay
    the timeOutScript
    the lastClick
    the lastEvent
    the lastKey
    the lastRoll
    (You can also use the more recent DOM style for these last four properties: _player.lastXXX)
    Here's a very simple script which will make sprite 1 disappear when the movie starts, and reappear if the user does nothing for 5 seconds:
    on startMovie()
      sprite(1).visible = FALSE
      the timeOutLength = 300 -- = 5 seconds * 60 ticks / second
    end startMovie
    on timeOut()
      sprite(1).visible = TRUE
    end timeOut
    If you click the mouse at intervals of less than 5 seconds after starting the movie, then the sprite will remain invisible.
    NOTE: Using sprite(x).visible = FALSE will make the entire sprite channel invisible everywhere in the Score. It's better to use sprite(x).blend = 0, unless the sprite must not react to the mouse while it is invisble, in which case it is better to move it off-stage.
    Is this what you are looking for?
    James

Maybe you are looking for