![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Conversion functions Topic Summary: Created On: 2-Aug-2005 17:08 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: int i = 45 string s = i "" // the empty string is concatenated with the int to form a string ;-) | |
![]() |
|
Is there an existing function in the DXL environment that allows string-to-integer conversion?
|
|
![]() |
|
![]() |
|
In DOORS 7.1 this works
string s = "323" // "323.9" will also print the same. The ".9" is truncated. int i =0 i = intOf(s) print i "" Will print 323 ------------------------- Bruce Tuskey Sr. Principle Engineer Tuskey@gmail.com "All that is gold does not glitter, not all those who wander are lost:..." - Gandalf the Grey (JRR Tolkien) Edited: 2-Aug-2005 at 17:41 by Bruce Tuskey |
|
![]() |
|
![]() |
|
Thanks, Bruce. What about going from integer to string?
|
|
![]() |
|
![]() |
|
int i = 45
string s = i "" // the empty string is concatenated with the int to form a string ;-) ------------------------- Bruce Tuskey Sr. Principle Engineer Tuskey@gmail.com "All that is gold does not glitter, not all those who wander are lost:..." - Gandalf the Grey (JRR Tolkien) Edited: 2-Aug-2005 at 17:50 by Bruce Tuskey |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Conversion functions
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.