Convert A Number To String?
Oct 22, 2009I want Convert a number to string![code]...
View 6 RepliesI want Convert a number to string![code]...
View 6 RepliesI'd like to convert a string which contains a decimal number into string that contains the binary value, the octal and the hexadecimal value of that decimal number.Afterwards I also like to convert a string containing a binary, octal and hexd. number into a decimal string.Basically I'm looking for the functions:
dec2bin
dec2oct
dec2hex
bin2dec
oct2dec
hex2dec
I'd not prefer to rewrite a function, I'm sure the framework must have these functions already.
I need to convert a number to string.[code]...
View 26 RepliesFirst the CINT etc commands will not work for this.
I have the following value 2A000000412DF21B in string displayed here as hex. It should convert to 3026418950686503451 but instead I'm gettting 3026418950686503424.[code]...
i work with scale weight(tec1600).I get weight in 5byte ----> 98 00 00 00 00 = 0 weighthow i convert hex to number or string?
View 2 Repliesmy format statement from vb6 is not formating right in vb 2010. Here is what I have.
sw.WriteLine("202" & Trim(Str(1000 - index)) & "0" & Trim(Str(kdex)) & Chr(9) & Format(Plotrecinp(1, kdex),
Chr(9) & Format(Plotrecinp(index, kdex), "#.#####E+##"))
This is what it gives me: 20299901 14415.58E+14415.58E+ It should be more like this: 20299901 2.88462E-1 1.45098E+4 nevermind the difference in the number values. the formatting is what I want.
I have a string
12 | Something Special
I would like to cut the "12" and convert into integer (I need it for SQL query purpose)
I tried:
Dim strID As String
strID = "12 | Something Special"
Dim IntStrID As String[code]....
but I tried "" still did not work
First the CINT etc commands will not work for this.I have the following value 2A000000412DF21B in string displayed here as hex. It should convert to 3026418950686503451 but instead I'm gettting 3026418950686503424.I take the string and convert it to bits 0010101000000000000001000001001011011111001000011011 then using a simple function I loop through and calculate the value. how to convert what I have in string to the number above.
Dim dbA As Double, dbB As Double, intX As Integer
Try
dbA = 1 : dbB = 0
For intX = Len(strB) To 1 Step -1
[code]....
I am reading an XML file and there is some data within the file that I need to do some math functions on and comparisons with.How can I convert some of the read data into a number?Can it be done before I read it meaing can I specify that what's between certain tags is a number?
View 1 RepliesI may have a string for example potato in a vb.net application. I want to find all the occurrences of o and convert them to 0, so the desired out is: p0tat0.I know it can be done by the provided string operations but I need a regular expression in my scenario.
View 1 RepliesI want to convert numbers from 0 to 15 like that
[Code]...
Problem is that when we convert 2 to binary number it gives only 10 in binary, but i want to convert 2 to 4 bit binary number 0010.
im having trouble understanding this question for a homework assignment. I need to write the PSEUDOCODE for the following scenario, but i got no idea about how to convert a hexadecimal number to a decimal number..You are required to input a two digit hexadecimal number eg. 3f (digits can be entered separately) and calculate the equivalent decimal number. (note the decimal number will be between 0 and 255) . output the decimal number
View 1 RepliesI created a listbox using VB.NET. When the user select an item (it is a string format) in the listbox and click on a button, there will be a number beside the string and the number will increment which time the button is clicked. Anyone know how to do it...?Below is the coding I'd done, but I don't know how to do the increment part. Anyone know what coding I need to add?
Dim no As Integer = 0
listBox.Items.Add(listBox.SelectedItem & no)
i got hex number from scale weight example:"90 00 00 01 34 = 180 kg" or "90 00 03 03 7c=49670 kg"how to convert hex to number(integer)
View 8 RepliesI am supposed to create a program that converts a number into the date that the number represents. its has to list today's date the date the number represents and the difference between that date and today 0 represents December 31st 1899
View 2 RepliesI am trying to convert a number so that it has commas in it. If the number is 1234 it should be 1,234 or if its 1000000000 it will be 1,000,000,000.
View 1 RepliesHow to convert a whole number into decimal..For example 70 to .70 because there are some price in my system that needed to be calculated by grams for example $5 per grams... I am saving the price in my database as an integer..
View 2 RepliesI realize this might be a redundant post, but I can't seem to find (through all the searches) the code to do what I need to do...or it's just not working for me.
I have an Intel hex file (containing ASCII characters) such as :041400000262F5226D
I need to convert the values to hex numbers into memory (an array), such as
[code...]
I'm not sure of the proper combination of conversions I need to get this accomplished. I've tried several combinations of Val/Asc/ etc. but can't get it correct.
I have a problem using FJ Core to convert image into byte.
I have a code written in C# which works fine.
The problem is when im running it in VB i get the exception: Arithmetic operation resulted in an overflow
It works fine in C# to convert a negative number into byte For Ex. (byte)-90024 = 88
But when i try to do it in VB i get the exception.[code]...
Anyone knows how to convert Number into Word using VB .Net : Like this example.. (sample: 150 = One Hundred Fifty )
View 3 RepliesI have to take a number value being entered into a text box and convert this to minutes and seconds and display the result in a label as xx min, yy sec. I know I need to use Mod in the process.
View 11 RepliesHow to convert the 5-digit number into a word using visual basic express edition
View 2 RepliesI am trying to convert an SMS to double. I'm creating a monitoring system where values like "45.2" are sent to another modem.
I would like to convert 45.2 (which I think is string initially and placed in a textbox) to double so I can do comparison upon receiving it.[code]...
how to convert text to a number.
So user in put one hundred and it will output to 100.
i want to know perfect convert all number to values like two to 2 two thousand to 2000
View 3 RepliesI am using Visual Studio 2008 professional edition . i really do not know of what will be the codes that i am going to input. by the way this is the scenario: on Textbox is a number then label should be the in words of the number from the textbox. for example : (textbox) 1500.05 = (Label) One Thousand Five Hundred Pesos and Five Centavos.
View 2 RepliesI'm analyzing several log files obtained by drive test. I need of an information called "Cell information" and I extract it using analyzer tool. Issue is that this tool extracts this information in DWORD 11214032. So I need to use calculator to convert it to WORD. See image: and after conversion:So I want to convert 11214032 to 7376 number that identifies my cellid. I must repeat this operation for all informations (around 30)
Can someone know how to convert number 11214032?
How can I do for converting 3 in "three". Or converting for example 153 in "one hundred fifthy tree"
View 7 RepliesI am trying to get a number into a cell but as a string not a number. For example if I have the number as '12345678901234' instead of putting that exact number in it changes it to ' 1.23457E+13 '. How do I get it to read it as a string and not an integer? Here is the code that I am using.
Dim
num As String
If pRow.IsProjectNumNull = False Then
[Code].....
Whats the best way to convert a list(of string) to a string with the values seperated by ,
View 3 Replies