AnsweredAssumed Answered

vrf How do I convert String(123.4E-5) to real(123.4E-5)?

Question asked by VRFuser on Nov 6, 2003
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><meta name=ProgId content=Word.Document><meta name=Generator content="Microsoft Word 10"><meta name=Originator content="Microsoft Word 10"><link rel=File-List href="cid:filelist.xml@01C3A4AD.4E3D8D20"><!--[if gte mso 9]><xml> <o:OfficeDocumentSettings>  <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings></xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument>  <w:DocumentKind>DocumentEmail</w:DocumentKind>  <w:EnvelopeVis/>  <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>  <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>  <w:Compatibility>   <w:SpaceForUL/>   <w:BalanceSingleByteDoubleByteWidth/>   <w:DoNotLeaveBackslashAlone/>   <w:ULTrailSpace/>   <w:DoNotExpandShiftReturn/>   <w:AdjustLineHeightInTable/>   <w:BreakWrappedTables/>   <w:SnapToGridInCell/>   <w:WrapTextWithPunct/>   <w:UseAsianBreakRules/>   <w:UseFELayout/>  </w:Compatibility>  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument></xml><![endif]--><style><!-- /* Font Definitions */ @font-face     {font-family:바탕;     panose-1:2 3 6 0 0 1 1 1 1 1;     mso-font-alt:Batang;     mso-font-charset:129;     mso-generic-font-family:roman;     mso-font-pitch:variable;     mso-font-signature:-1342176593 1775729915 48 0 524447 0;}@font-face     {font-family:굴림;     panose-1:2 11 6 0 0 1 1 1 1 1;     mso-font-alt:Gulim;     mso-font-charset:129;     mso-generic-font-family:modern;     mso-font-pitch:variable;     mso-font-signature:-1342176593 1775729915 48 0 524447 0;}@font-face     {font-family:"@굴림";     panose-1:2 11 6 0 0 1 1 1 1 1;     mso-font-charset:129;     mso-generic-font-family:modern;     mso-font-pitch:variable;     mso-font-signature:-1342176593 1775729915 48 0 524447 0;}@font-face     {font-family:"@바탕";     panose-1:2 3 6 0 0 1 1 1 1 1;     mso-font-charset:129;     mso-generic-font-family:roman;     mso-font-pitch:variable;     mso-font-signature:-1342176593 1775729915 48 0 524447 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal     {mso-style-parent:"";     margin:0cm;     margin-bottom:.0001pt;     text-align:justify;     text-justify:inter-ideograph;     mso-pagination:none;     text-autospace:none;     word-break:break-hangul;     font-size:10.0pt;     mso-bidi-font-size:12.0pt;     font-family:바탕;     mso-hansi-font-family:"Times New Roman";     mso-bidi-font-family:"Times New Roman";     mso-font-kerning:1.0pt;}a:link, span.MsoHyperlink     {color:blue;     text-decoration:underline;     text-underline:single;}a:visited, span.MsoHyperlinkFollowed     {color:purple;     text-decoration:underline;     text-underline:single;}span.EmailStyle17     {mso-style-type:personal-compose;     mso-style-noshow:yes;     mso-ansi-font-size:10.0pt;     mso-bidi-font-size:10.0pt;     font-family:굴림;     mso-ascii-font-family:굴림;     mso-fareast-font-family:굴림;     mso-hansi-font-family:Arial;     mso-bidi-font-family:Arial;     color:windowtext;} /* Page Definitions */ @page     {mso-page-border-surround-header:no;     mso-page-border-surround-footer:no;}@page Section1     {size:595.3pt 841.9pt;     margin:99.25pt 3.0cm 3.0cm 3.0cm;     mso-header-margin:42.55pt;     mso-footer-margin:49.6pt;     mso-paper-source:0;     layout-grid:18.0pt;}div.Section1     {page:Section1;}--></style><!--[if gte mso 10]><style> /* Style Definitions */  table.MsoNormalTable     {mso-style-name:"표준 í‘œ";     mso-tstyle-rowband-size:0;     mso-tstyle-colband-size:0;     mso-style-noshow:yes;     mso-style-parent:"";     mso-padding-alt:0cm 5.4pt 0cm 5.4pt;     mso-para-margin:0cm;     mso-para-margin-bottom:.0001pt;     mso-pagination:widow-orphan;     font-size:10.0pt;     font-family:"Times New Roman";}</style><![endif]--></head><body lang=KO link=blue vlink=purple style='tab-interval:40.0pt'><div class=Section1 style='layout-grid:18.0pt'><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>Hi, all!<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>I am trying to convert a string </span></font><fontface=Arial><span lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:Arial;mso-ascii-font-family:굴림;mso-fareast-font-family:굴림'>“</span></font><fontface=굴림><span lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>123.4E-5</span></font><fontface=Arial><span lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:Arial;mso-ascii-font-family:굴림;mso-fareast-font-family:굴림'>†</span></font><fontface=굴림><span lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'> to real value.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>The TDS684B(Oscilloscope) is keep returning textvalues like above for certain measurements.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>But in order to do a calculation with that, ofcourse we need to convert it to real number.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>However, the closest function that I could find was</span></font><font face=Arial><span lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:Arial;mso-ascii-font-family:굴림;mso-fareast-font-family:굴림'>‘</span></font><fontface=굴림><span lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>strtoint </span></font><fontface=Arial><span lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:Arial;mso-ascii-font-family:굴림;mso-fareast-font-family:굴림'>‘</span></font><fontface=굴림><span lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'> which just convertonly the first letter into integer in VEE.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>So my question is first, if there is any other functionthat works for this purpose<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>Second, if anybody has done this before and <o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>Third, if there is any way that I can insertfunction built by C or C++ then is it really complicated?<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>Best Regards<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'>KS<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=굴림><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:굴림;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial'><o:p> </o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>=====================================================<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>KEUNSOOJO<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>DRAMAPPLICATION <st1:country-region><st1:place>ENG.</st1:place></st1:country-region>GROUP<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>MEMORYPRODUCT PLANNING DIV.<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>DEVICESOLUTION NETWORK<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>SAMSUNGELECTRONICS CO.,LTD. <span style='mso-tab-count:1'>  </span><o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>Cell    016.838.426</span></font><font size=3 face=굴림><span lang=EN-USstyle='font-size:12.0pt;font-family:굴림;mso-fareast-font-family:바탕;mso-bidi-font-family:굴림;mso-no-proof:yes'><o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>          +82.16.838.4269 #overseas<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>EMail<spanstyle='mso-tab-count:1'>       </span>udaman@sec.samsung.com<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>Fax     031.208.6799(6769)</span></font><font size=3 face=굴림><span lang=EN-USstyle='font-size:12.0pt;font-family:굴림;mso-fareast-font-family:바탕;mso-bidi-font-family:굴림;mso-no-proof:yes'><o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>           +82.31.208.6799(6769)#overseas<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>Office<spanstyle='mso-tab-count:1'>       </span>031.208.6326</span></font><font size=3face=굴림><span lang=EN-US style='font-size:12.0pt;font-family:굴림;mso-fareast-font-family:바탕;mso-bidi-font-family:굴림;mso-no-proof:yes'><o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>           +82.31.208.6326#overseas<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>====================================================<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>Thereare two ways of spreading light.<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>To bethe candle or the mirror that reflects it.<o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'><spanstyle='mso-spacerun:yes'> </span>-<span style='mso-spacerun:yes'>  </span>EdithWharton<span style='mso-spacerun:yes'>  </span>-
</span></font><span style='mso-bidi-font-size:10.0pt;mso-hansi-font-family:바탕;mso-no-proof:yes'>▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬</span><span lang=EN-USstyle='mso-bidi-font-size:10.0pt;mso-hansi-font-family:바탕;mso-bidi-font-family:굴림;mso-no-proof:yes'><o:p></o:p></span></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>Theinformation contained in this E-mail message may be privileged, </span></font><fontface="Times New Roman"><span lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-fareast-font-family:굴림;mso-no-proof:yes'><o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>confidential,and protected from disclosure. <o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>Ifyou think you have received this E-mail message in error, <o:p></o:p></span></font></p><p class=MsoNormal style='layout-grid-mode:char;mso-layout-grid-align:none'><fontsize=2 face="Times New Roman"><span lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'>pleasenotify me through the email address above.</span></font><font size=3face="Times New Roman"><span lang=EN-US style='font-size:12.0pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-no-proof:yes'><o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=바탕><span lang=EN-US><o:p> </o:p></span></font></p></div>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list,  email "vrf@agilent.com".  <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></html>  

Outcomes