<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Number conversion in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726171#M655396</link>
    <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Oops, the original post I made failed to cover cases like "3e+3" (without a fractional part).  Use:&lt;BR /&gt;&lt;BR /&gt;# perl -ne 's{(\d+(?:\.\d+)?[eE][+-]\d+)}{sprintf "%.0f",$1}ge;print' file&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 14 Dec 2010 15:34:01 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-12-14T15:34:01Z</dc:date>
    <item>
      <title>Number conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726164#M655389</link>
      <description>I need to load input flatfile contents into some table.&lt;BR /&gt;&lt;BR /&gt;My flat file contains data like:&lt;BR /&gt;---------------------------------------&lt;BR /&gt;0 90 0 0 0 512000 7&lt;BR /&gt;0 0 30 0 0 6.29146e+06 30&lt;BR /&gt;&lt;BR /&gt;in the above data all the columns are numbers only. But From the source file we are receiving data in the sixth column in exponential format (which is out of control from us) now I need to convert this into number and load into table (Because my Table column data type is number). &lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2010 12:39:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726164#M655389</guid>
      <dc:creator>Gopi Kishore m</dc:creator>
      <dc:date>2010-12-14T12:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Number conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726165#M655390</link>
      <description>What is this "table" supposed to be?&lt;BR /&gt;&lt;BR /&gt;If this is a table in a database, what's the name and version of the database engine? (Oracle 10g? MySQL 5.1? Something else?)&lt;BR /&gt;&lt;BR /&gt;In general, I'd search the database documentation for functions like TO_NUMBER(), CONVERT() or CAST(). Without knowing the name of the database engine, it is hard to be more specific.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 14 Dec 2010 13:16:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726165#M655390</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-12-14T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Number conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726166#M655391</link>
      <description>My Database is Oracle10g</description>
      <pubDate>Tue, 14 Dec 2010 13:18:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726166#M655391</guid>
      <dc:creator>Gopi Kishore m</dc:creator>
      <dc:date>2010-12-14T13:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Number conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726167#M655392</link>
      <description>Hi :&lt;BR /&gt;&lt;BR /&gt;One way:&lt;BR /&gt;&lt;BR /&gt;# perl -ne 's{(\d+\.?\d+[eE][+-]\d+)}{sprintf "%.0f",$1}ge;print' file&lt;BR /&gt;&lt;BR /&gt;Using your input this produces:&lt;BR /&gt;&lt;BR /&gt;0 90 0 0 0 512000 7&lt;BR /&gt;0 0 30 0 0 6291460 30&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 14 Dec 2010 14:09:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726167#M655392</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-12-14T14:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Number conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726168#M655393</link>
      <description>Hi (again) Gopi:&lt;BR /&gt;&lt;BR /&gt;You also have unevaluated (answers without points assigned) an your earlier threads:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1458759" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1458759&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When you are satisfied with the help that you have received, please read this link about points assignments:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2010 14:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726168#M655393</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-12-14T14:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Number conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726169#M655394</link>
      <description>ThankQ James (JRF), It works...&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;Sure from nowonwards I will try to assign the points aswell.&lt;BR /&gt;&lt;BR /&gt;As I am new to this forum, I dont know the benifits for assign points.&lt;BR /&gt;&lt;BR /&gt;Anyways thanQ... :-)&lt;BR /&gt;Gopi</description>
      <pubDate>Tue, 14 Dec 2010 14:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726169#M655394</guid>
      <dc:creator>Gopi Kishore m</dc:creator>
      <dc:date>2010-12-14T14:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Number conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726170#M655395</link>
      <description>Hi Gopi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Sure from nowonwards I will try to assign the points aswell.&lt;BR /&gt;&lt;BR /&gt;Thanks.  You can go back (using your profile) and find those threads where you didn't assign points and evaluate those too.&lt;BR /&gt;&lt;BR /&gt;The value to assigning points is two-fold: (1) to say "thanks"; and (2) to flag the discussion and its contributions for future viewers to find what solved *your* problem and therefore what might be helpful to them.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 14 Dec 2010 14:31:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726170#M655395</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-12-14T14:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Number conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726171#M655396</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Oops, the original post I made failed to cover cases like "3e+3" (without a fractional part).  Use:&lt;BR /&gt;&lt;BR /&gt;# perl -ne 's{(\d+(?:\.\d+)?[eE][+-]\d+)}{sprintf "%.0f",$1}ge;print' file&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 14 Dec 2010 15:34:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726171#M655396</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-12-14T15:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Number conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726172#M655397</link>
      <description>&lt;!--!*#--&gt;Assuming you don't have any fractions, you can also use this awk:&lt;BR /&gt;awk '&lt;BR /&gt;BEGIN { OFMT="%.0f" }&lt;BR /&gt;{&lt;BR /&gt;for (i=1; i &amp;lt; NF; ++i)&lt;BR /&gt;   printf "%.0f ", $i&lt;BR /&gt;print $NF&lt;BR /&gt;} ' file</description>
      <pubDate>Wed, 15 Dec 2010 08:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-conversion/m-p/4726172#M655397</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-15T08:32:38Z</dc:date>
    </item>
  </channel>
</rss>

