473,473 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

just a simple question on conversions

JavaStudent07
64 New Member
I know how to change a string to an integer, but is there in fact a reverse to this process? (turning an integer into a string that is)

If you know or have a solution I would be very grateful.

Thank you,
Steve
Apr 17 '07 #1
2 974
r035198x
13,262 MVP
I know how to change a string to an integer, but is there in fact a reverse to this process? (turning an integer into a string that is)

If you know or have a solution I would be very grateful.

Thank you,
Steve
Expand|Select|Wrap|Line Numbers
  1.  double d = 0.9; 
  2. String s = "" + d;
  3.  
or

Expand|Select|Wrap|Line Numbers
  1.  String s = String.valueOf(d); 
Apr 17 '07 #2
r035198x
13,262 MVP
Expand|Select|Wrap|Line Numbers
  1.  double d = 0.9; 
  2. String s = "" + d;
  3.  
or

Expand|Select|Wrap|Line Numbers
  1.  String s = String.valueOf(d); 
Ah well, I realize that I've posted the conversion from double to String.
I'm sure you can do the integer one now anyway ...
Apr 17 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Dan Stromberg | last post by:
I'm working on writing a program that will synchronize one database with another. For the source database, we can just use the python sybase API; that's nice and normal. For the target...
15
by: buda | last post by:
Let me see if I got this :) 1. I know the rules for type conversions in arithmetic expressions 2. I know that an implicit type conversion is done at assignment, so float x = 1.23; int t = (int)...
36
by: Chad Z. Hower aka Kudzu | last post by:
I have an implicit conversion set up in an assembly from a Stream to something else. In C#, it works. In VB it does not. Does VB support implicit conversions? And if so any idea why it would work...
3
by: robert | last post by:
I'm looking for a most simple but save opt-in mailing list script in php (linux Apache CGI, but shouldn't matter) best: * all in one single .php file; different functions by input vars /...
13
by: Mike S | last post by:
I came across the following paragraph in the "Semantics" section for simple assignment in N1124 (C99 draft) and I'm wondering if I'm interpreting it right: 6.5.16.1p3: If the value being...
3
by: Baron Samedi | last post by:
Sounds unbelievable, I know, but I joined a company whether they don't do any host testing, only target. No one test their code in an IDE on a PC - they just link it and try to test the whole thing...
11
by: James R. Davis | last post by:
Yes, a newbie here. Though I am making progress, slowly, I am also getting more and more confused. With ASP, when I wanted to do something as trivial as updating a visitor counter, I...
1
bencoding
by: bencoding | last post by:
Heyo, I am new to the .NET experience and just getting my bearings. I am trying to do something simple like connect to my database and display some data through a loop. Can anyone help me with...
8
by: oh.i.love.spam | last post by:
I've been a procedural PHPer for a while now and I don't know why it has taken me so long to start the jump from procedural to OOP. I have a function that I would use for doing length...
32
by: alex.j.k2 | last post by:
Hello all, I have "PRECISION" defined in the preprocessor code and it could be int, float or double, but I do not know in the code what it is. Now if I want to assign zero to a "PRECISION"...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.