Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~314 People Reached
Favorite Forums
Favorite Tags
Member Avatar for Drau

im trying to convert double to string with this code: if its a number like 3.7345 than its working - but if its 5.0 (only zeros after the point) [CODE] double number=5.0; string ToString; stringstream out; out << number; ToString = out.str(); return ToString;[/CODE] it returns - 5 and i …

Member Avatar for Drau
0
149
Member Avatar for Drau

hello, small question if i may :-) [CODE] try: x=int(input()) except ValueError as var: print(str(var.args[0])) [/CODE] if i input a string like - abcd this code prints me the full error message invalid literal for int() with base 10: 'abcd' while i need only the input - abcd to be …

Member Avatar for Drau
0
165