![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Full precision real conversion to a string Topic Summary: Created On: 29-Oct-2004 11:48 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
how about multiplying up to get all the sig figs...
real r = 22.0/700.0 string sR = r"" Regexp rDP = regexp("\\.[0]*") rDP sR string sMatch = sR[match 0] int iLen = length(sMatch) real r2 = r*pow(10.0,realOf(iLen)) r2 = r2*pow(10.0,16.0) Regexp rSF = regexp("[0-9]*") string sR2 = r2"" rSF sR2 print "SF="sR2[match 0]"\n" |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Full precision real conversion to a string
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.