How to get to 16 significant digits?

My forum/google-fu fails me today, and I hope someone might be able to suggest something.

Basically, I learned to turn the values passed in one currency to another by dividing by a rate of fx. This piece, I can handle it, but the incoming data are to 16 significant digits, and my output should also be in 16 s.f. format.

Thus, assuming that I have given in the following format:
with my_tab as (select 22673.333550957921 num from dual union all
                select 0.0000000038002838659797923 from dual union all
                select 123456789012345678 from dual)
select * 
from   my_tab
What would be the most effective of the borough to 16 significant digits? Obviously, if it were 16 decimal places, it would be easy, I would just use the ROUND function...

Published by: Boneist on October 31, 2008 15:35
published the first number in my example is in sf 17, rolls eyes

Hello

Interesting problem!

The whole part of LOG (10, num) tells you where the first significant digit is (how many decimal places to the left column of the 1).
So:

with my_tab as (select 22673.333550957921 num from dual union all
                select 0.0000000038002838659797923 from dual union all
                select 123456789012345678 from dual)
SELECT     TO_CHAR (num)     AS raw_num
,     TO_CHAR     ( ROUND     ( num
               , 15 - FLOOR (LOG (10, num))
               )
          )     AS cooked_num
FROM   my_tab;

product

RAW_NUM                        COOKED_NUM
------------------------------ ------------------------------
22673.333550957921             22673.33355095792
.0000000038002838659797923     .000000003800283865979792
123456789012345678             123456789012345700

To make handling you want, there is no need to convert to a string.
To_char is located in the above query only to help see the complete number.

Published by: Frank Kulash, October 31, 2008 16:55

This assumes that num is positive: no positive arguments of NEWSPAPER are not allowed.
For a work-aroumd, see Brian message (troisieme after this one).

Tags: Database

Similar Questions

  • How to get the first 6 digits and the last 4 digits of a string?

    Greetings people.

    A small question and probably quite simple for a lot of guys out there.

    I have a string which can be anywhere between 15 and 20 characters (not a fixed length)

    I can't be divided into 3 segments.
    Segment 1 : 123456 ( 6 digits )
    
    Segment 2 : Everything else in the string from where Segment 1 ends (+1) and Segment 3 begins (-1).
    
    Segment 3 : 1234 ( 4 digits )
    Any help is appreciated!

    Thank you
    select substr (str, 1, 6)
         , substr (str, 7, length (str) -10)
         , substr (str, -4)
      from test
    
  • How to get digital signl in labVIEW

    Hi, I have 1 problem is how to get the digital signal in LabVIEW without using the DAQ card

    Hello

    There are several ways you can load a digital waveform file:

    Playback of the file measure Express VI

    or

    The reading file VI Wavefrom

    or

    Simulate it arbitrary Signal Express VI - use the Signal set > Load Data button.

    If this does not help, could you provide more data, also why can not use you a data acquisition card.

  • I have a photography teacher program Adobe and must add Adobe Illustrator for the BSc SAID curriculum I am on at the Academy of digital skills in Dublin, Ireland how I get the student discount to add Illustrator to mentoring rate?

    I have a photography teacher program Adobe and must add Adobe Illustrator for the BSc SAID curriculum I am on at the Academy of digital skills in Dublin, Ireland how I get the student discount to add Illustrator to mentoring rate?

    I don't know if we can add a program, or you if have to go to a subscription 'all' education

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • How to reduce the number of significant digits after the decimal point, not only displays for example, 0.12345678 convert to 0.123 in all cells

    I imported a. Table TSV having 4000 rows and 20 columns in numbers, by changing its extension .tsv in .txt. Then, drag and drop in numbers.

    The actual values have too many significant digits to be useful and may be beyond the capacity of the numbers to calculate or to find 262.825892344384

    If there is a way to have the SS (4000 x 20) 'Numbers' to reduce the values currently stored in the entire document or a particular column or row

    262.825892344384 to 262.8259 I am not interested to the value, but the value actually stored and used for calculations.

    I have a table that uses the formula of round and takes as input the data that you have imported.  Then you can select the data in the round table, copy

    then paste the data in the original table by using the menu item "Edition > paste formula results.

    Ibn chart at right

    B2 = ROUND (Original Data::B2, 3)

    It's abbreviation dethrone select cell B2 and type (or copy and paste it here) the formula:

    = ROUND(Original Data::B2, 3)

    now select cell B2, copy

    Select the cells B2 to C2, dough

    A2 = Data::A2 Original

    Select cells A2 through C2, copy

    Select cells A2 through the last cell in column C, paste

    now select the data in the table 'Data rounded' copy

    Select the corresponding cells in the original table, select the menu item "Edition > paste formula results.

  • scope and read the significant digits vi

    Hi all

    Let me start by giving you some background.

    I'm measuring a RMS (approximately 1.8V) voltage using NOR-Scope read Vi, which works very well, my problem is that I also try to calculate the current RMS within the same Vi, using a known resistance. With the voltage, I have only two significant digits using playback OR-Scope, which gives me too much a rounding error, when it comes to the current problem.

    So my question is this; is there another stock Vi that I could use to increase the number of significant digits to get or is it possible to increase the number of significant digits with the Vi? Other ideas are welcome and thank you for your help.

    I don't know what is this 'NO-Scope reading measure Vi', but how many significant digits you put your indicator (right click, properties)? If this does not help, please contact your VI.

    Cameron

  • Satellite C660: How to get the HDMI port?

    Hello

    Could someone tell me how to get hdmi on the laptop as the laptop has a hdmi port

    Thank you

    Hello

    But what C660-xxx you? Perhaps you could use a
    It is not possible to add arbitrary ports.

    Ports are part of the motherboard and if the laptop does not provide an HDMI port, so, you will not be able to use that :(

    Of course, you could use a device that would be to convert a digital video signal, but they are expensive and in my opinion not worth trying it s better to buy a laptop that would support the HDMI port instead of buy a converter for 200-$300

  • Qosmio G20-102 TV TUNER: how to get this to work - what cables are required?

    Hey everybody,

    I just installed vista on my laptop QOSMIO G20-102 (PQG20), I have media library now.
    My laptop came not like MEDIA CENTER EDITION, it came under the home edition of Windows XP (laptop purchased in July 2005).
    I got 3 cables which I have no idea how to use...
    laptop was purchased in Dubai/Emirates and I live in Malta

    These are the cables >
    http://img399.imageshack.us/img399/7189/dsc00780gi6.jpg

    Now for my question (s):
    1 which of these cables do I need? Im just trying to figure out how to get my satellite tv or digital cable to work on my laptop.
    2 antenna adapter (see picture) is not for coaxial cable, what can I do?
    3 I did WINDVR more due to the upgrade of vista, Media Center Gets the job done but I don't know what to do... This guide has confused me even more > http://www.microsoft.com/windowsxp/mediacenter/using/setup/settop.mspx
    I don't have IR control cable, I do not have a remote sensor (but I have some sort of built in the remote sensor on the front of my laptop.

    I'm looking for advice as for example buy this, get rid of it, install this etc...
    Please, anything that can help is appreciated!
    If you need information more just ask, I am here ;)

    Yours sincerely
    Ishmael

    Hi ismael,.
    I'll try to help with that, but it's a long way to the road...
    I don't know what Tv system is used to Malta (Pal)?

    The best way to set up your TV's with Media Center 2005 edition.
    Cables:
    Check the back of your cable TV installation box and find the composite or SVHS output. If you have only the composite, you can use the composite cable of the posted image. If your TV decoder has the SVHS, so you should use, to the better image than composite. You must obtain a SVHS cable for this.
    Look for the audio output rca, too. Mix with the composite cable for the audio Qosmio.

    But you must have:
    1 control cable IR, for media center 2005 configuration as well as your TV decoder. It is cable connected to the remote sensor (see fact sheet on the back).

    2 sensor for your remote control and configure it with the remote control of your TV decoder. In this way, you can control the receiver cable channels, using the remote control for your Qosmio G20 media center edition.
    Recovery: you can change the channels on your TV decoder using the qosmio remote control.

    3. remote control for you media Center 2005, one that came with your Qosmio g20.

    Open the TV on Media Center 2005 configuration and follow all the steps required for installation.
    You must follow the guide, as is explained in the image you posted:
    http://www.Microsoft.com/windowsxp/mediacenter/using/Setup/SetTop.mspx

    If you have all these cables, you can use the Qosmio player to watch TV. It is not tied to windows OS.
    Here, simply connect the coaxial cable and let the Qosmio player search for available channels in your area. Qosmio player has the opportunity to set the colour TV system in any part of the world. all NTSC regions in all PAL regions.
    If you have the remote control for your Qosmio, TV keys will work directly with the Qosmio remote sensor on board, without needing the external sensor of Microsoft.

    I hope this helps you
    Francisco

  • How can I set up a digital input task to read continuous samples?

    I am trying to create an exclusively digital task that will make digital readings at a rate timed by the material using a PCIe-6509. However, when I try to put the task timing as follows (which works on a PCIe-6509), I get the following error:

    Requested value is not supported for this property value. The value of the property may be invalid because it is in conflict with another property.

    Property: NationalInstruments.DAQmx.Timing.SampleTimingType

    Required value: NationalInstruments.DAQmx.SampleTimingType.SampleClock

    Possible values: NationalInstruments.DAQmx.SampleTimingType.OnDemand, NationalInstruments.DAQmx.SampleTimingType.ChangeDetection

    Task name: DigitalInputTask

    State code:-200077

    The relevant parts of my code are:

        public class DigitalInputReader: IDisposable
    {
    public DigitalInputReader()
    {
    dataReadyHandler = new System.AsyncCallback (DataReadyEventHandler);

    daqmxTask = new DigitalInputTask();
    daqmxTask.Configure (Globals.NI);

    daqmxTask.Control (TaskAction.Verify);
    daqmxTask.Control (TaskAction.Commit);

    daqmxReader = new DigitalMultiChannelReader (daqmxTask.Stream);
    }

    public class DigitalInputTask: task
    {

    public DigitalInputTask(): {base ("DigitalInputTask")}

    public virtual void Configure (NiConfiguration niConfig)
    {
    <= niconfig.digitalinputs.count="" -="" 1;="">
    {
    String physicalChannelName = niConfig.Device + "/ port" + niConfig.DigitalInputs [i]. Port.ToString () + "/ line" + niConfig.DigitalInputs [i]. Channel.ToString ();
    String nameToAssignToChannel = niConfig.DigitalInputs [i]. Name;

    DIChannel ch is this. DIChannels.CreateChannel (physicalChannelName, nameToAssignToChannel, ChannelLineGrouping.OneChannelForEachLine);
    c. InvertLines = niConfig.DigitalInputs [i]. InvertLines;
    }
    var signalSource = "";
    This. Timing.ConfigureSampleClock (signalSource, Globals.MachineSettings.SampleRate, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples);// Globals.MachineSettings.SamplesPerChannel);
    }
    }

    The last call to Task.Timing.ConfigureSampleClock, it's which throw errors.

    Of the options available, or SampleTimingType.OnDemand or NationalInstruments.DAQmx.SampleTimingType.ChangeDetection provide the same precisely timed calls that I am familiar with the analog input interruptions.

    How is it possible in a digital task?  I mean, it seems that I could set up another task to do call by material for the production of a clock signal and use the ChangeDetection synchronization mode, but this seems a bit complicated for what should be easy to do.  What Miss me?

    Update: I thought about it.  You cannot call ConfigureSampleClock when the digital input card is a device of 650 x, because these devices have any automated examples of clock.  They are configured to run in mode default finite samples.  You must make all sample synchronizing with these devices in the software.

    Be cautious, however, because the .NET timers ensure they put any faster than their scheduled interval.  In practice, they are usually 5 to 10 ms slow by tick.  This means that if you want to read samples every 100 ms by sample clock, you'd end up reading all 108 ms samples.  All counters based on the elapsed time and number of samples would be away after a few seconds of it.

    Instead, you must do one of four things: write a doggone driver that runs in ring 0 and interfaces with the PCIe card in the required interval (i.e. on NC, not you, in practice), tolerate the inclination of the clock, use a multimedia timer as an interruption audio or video that is more likely to respond to the correct interval, or , my solution, an accurate clock allows you to set the interval of the timer.  I wrote the following code to the timer:

    var CorrectiveStopwatch = new System.Diagnostics.Stopwatch();
    var CorrectedTimer = new System.Timers.Timer()
    {

    Interval = targetInterval,
    AutoReset = true,
    };
    CorrectedTimer.Elapsed += (o, e) =>
    {
    var actualMilliseconds =;

    Adjust the next tick so that it's accurate
    EG: Stopwatch says we're at 2015 ms, we should be at 2000 ms
    2000 + 100 - 2015 = 85 and should trigger at the right time
    var StopwatchCorrectedElapsedMilliseconds = newInterval +.
    targetInterval-
    CorrectiveStopwatch.ElapsedMilliseconds;

    If we're over 1 target interval too slow, trigger ASAP!
    <=>
    {
    NvelIntervalle = 1;
    }

    CorrectedTimer.Interval = NvelIntervalle;

    StopwatchCorrectedElapsedMilliseconds += targetInterval;
    };

    I hope this helps someone.

  • Any ideas how to get rid of the rose?

    I just signed up for the first time today and everything on my screen that should be white is pink. I know that the monitor support always white because when I first connect there is a small screen which lights up and that switches from analog to digital and it is bright white. Any ideas how to get rid of the rose? Tried to DISPLAY on the control panel and could not fix. Thanks, people.

    Hi rutherford nbr 1.
     
    -Did you of recent changes made to your computer before this problem?
     
    Make sure that the monitor cable is correctly connected. In addition, if you have another computer, the same connect to your computer to confirm that the issue is not because of the screen.
     
    Make sure that there is no electric devices with magnets next to your screen.
     
    Follow these steps and check if it helps fix the problem.
     
    a. Click START and select control PANEL.
    b. Select and click VIEW.
    c. Select SETTINGS on the Interface of the screen and then ADVANCED.
    d. on the advance Interface, choose COLOR MANAGEMENT tab.
    e. on Interface, click on add color management. You will see a list of color profiles.
    f. choose the most appropriate to the brand of the screen / graphics card. You can choose several color profile and a default setting.
     
    For more information, see:
  • I would like to know how to get the movie library in windows media center to record DVDs

    I don't know how to get movies on my hard drive to find in windows media center

    Hello

    You can check these links:
    Add digital media files to Windows Media Center
  • My computers Magnifier turned on itself - how I get rid of him?

    My computers Magnifier turned on itself - how I get rid of him?  I have Windows Vista Home Premium.

    Thanks again David - my stepson played around with it for a few off and clicking on tools (to the top) of the screen - apparently clicked on full screen and who seems to have contributed significantly: I appreciate really all your help - Merry Christmas!

  • How to get serial number in Dell monitor?

    Hello

    How to get serial number in Dell Monitor (model No.: S2240Lc).

    I have only 20-digit S/n.

    Thank you

    Riou...

    As I said, you can't get a service tag. By the article.

    Monitors without a number of service purchased from resellers (Amazon, Best Buy, Buy.com, cost Co, Wal-Mart, Sams, other boutique online, etc.)
    * Based on the start date of date code monitor 20-digit serial number, Dell PPID you monitor for 3 years warranty
    You need to contact Support for your country. Tell them to open the Dell internal only Oracle knowledge Information center
    * In the search space, they should enter PNP13081, and then click search. This opens the article =
    Replacement for Dell monitor and procedure - Dell international policy policy

    The customer is unable to provide a Dell order number or serial number system because the customer bought the monitor from a retailer. The only information that the client has are the PPID number for the monitor. For monitors when there is not an available Dell order number, agents will use the date code embedded in the PPID monitor serial number to determine the beginning of the start of coverage.

    Discussion = the warranty is 3 years from the date of early series PPID embarked on the label.
    Solution = Set up screen replacement against the fake tag.
    * You would provide the following representative data if you need a replacement monitor in this 3-year period:
    Brick or shop online:
    Monitor model:
    Monitor 20 digits alphanumeric serial number PPID:
    [Your]
    E-mail address:
    Name:
    Shipping address:
    Phone number:
    Operating system:
    Video card:
    Video card ports tested:
    Question:
    Performed troubleshooting:
    Monitor the done Factory Reset
    Watch chess self-test Diagnostics and integrated
    * Post more troubleshooting

  • How to get a window7reinstall disc

    Original title: need help

    I need help on how to get a window7reinstall disc

    For 5 years, Microsoft made it fairly easy for users of the Windows 7 operating system to get reinstall media. If you have lost your support disc or installation retail collection; either it has been damaged or defective; You can download a copy of the edition that you have licensed from a membership site called Digital River. More recently, Microsoft ended the availability to reinstall media that you can download as a. File ISO in Digital River, which is a digital reproduction of an optical disc.

    It was particularly convenient for people who could not easily get the manufacturer's recovery media, did not want to pay the fees required to get or preferred a clean configuration without the software packaged manufacturers or even a recovery partition does not work. It's easy to use, all you had to do was reinstall and reactivate using the product key located on the certificate of authenticity and download all the drivers on the manufacturers website.

    Given that this option is no longer available, what are your options? See the article for more details:

    How to: What are my options for Windows 7 reinstall media?

    Make sure you scroll down and read the section:

    What to do if you cannot get your manufacturer recovery media, refuse to use or to buy it or the Microsoft Software Recovery Website does not work?

  • How to get windows 7 Professional operating for existing key?

    How to get windows 7 Professional operating system software for existing key

    For 5 years, Microsoft made it fairly easy for users of the Windows 7 operating system to get reinstall media. If you have lost your support disc or installation retail collection; either it has been damaged or defective; You can download a copy of the edition that you have licensed from a membership site called Digital River. More recently, Microsoft ended the availability to reinstall media that you can download as a. File ISO in Digital River, which is a digital reproduction of an optical disc.

    It was particularly convenient for people who could not easily get the manufacturer's recovery media, did not want to pay the fees required to get or preferred a clean configuration without the software packaged manufacturers or even a recovery partition does not work. It's easy to use, all you had to do was reinstall and reactivate using the product key located on the certificate of authenticity and download all the drivers on the manufacturers website.

    Given that this option is no longer available, what are your options? See the article for more details:

    How to: What are my options for Windows 7 reinstall media?

    Make sure you scroll down and read the section:

    What to do if you cannot get your manufacturer recovery media, refuse to use or to buy it or the Microsoft Software Recovery Website does not work?

Maybe you are looking for