Summary: Hi I'm trying to write a little program that shows functions. The first bit works ok: var value : char; number: real; numberint : integer; ...
Summary: Hey. I need some help with C or C++. I have to import a file.txt with real E notated (like 2.3E-12) numbers in 2 columns in it (coordinates basicly -...
Summary: G'day, Yes, longint is still an integer; it just has a much larger range. Factorial calculations have a habit of getting very large, very quickly. You...
Summary: hello again, Is it possible for the user to specify how many decimal places to format a number in C? I could use switch but the user should be able to...
Summary: Try this on for size: To generate a random integer between 1 and N, use the formula int(rnd(1)*N) + 1. So, in the case of a random integer between 1 ...
Summary: Hello! Well, I would be very greatful if someone could please help me with a small and simple program, although I can't make it work :) So here it is:...
Summary: Hi, im having difficulty with the random number generator in C, rand(). What Im trying to do is estimate the mean of a real number generator. So I n...
Summary: >Mechanix2Go >What do you mean by "DOS short date"? I mean that in Windows you can set short date format. For example on XP you can do this by selecti...
Summary: I take it you mean format a number. converting means changing it from an integer into something else like a floating point number. To Format a number...
Summary: I don't know c++ programming but I know it supports Regular Expressions. So, doing a substitution on a var might solve the comma insertion problem. H...
Summary: ======================================================================================== In addition to what BelAnWel stated, a few other pieces of i...
Summary: No, it isn't possible as DOS batch Set /A (better, NT Set /A statement, there is no DOS in XP) acts on integers only. So you have to read your numeric...
Summary: Hi all, I have the following script I found on the Internet but it formats the phone number incorrectly for my needs. How would I make it so that it o...
Summary: Your script is giving me the following error for most numbers I used. Divide by zero error. 10 was unexpected at this time. I adjusted the regex in my...
Summary: Well, but unfortunately NT batch script offers basic integer arithmetics only so more info is needed about numeric fields format, i.e. is the decimal ...
Summary: Hi. I made a few posts here before. Some of you may remember me.(I'd hope so, considering my posts are still on the first page :) ) I started attempti...
Summary: Using C programming and a UNIX OS, I cannot seem to get my program running properly. here's the code I have: int main() { char phone[15], area[3],...
Summary: No, they are not same. Consider a method add(). 1. Overloading - When a method is overloaded it necessarily means that it is another method. ex: add( ...
Summary: setw() Set field width for output. setprecision() Set precision (number of digits) you cannot use setprecision() to align numeric data, only to allow ...
Summary: i am tring to use it for a phone number...eg 9055674457....<< not a real number jus some random numbers.....Dim num as long is not wrkin either....
Summary: i need to validate some input from a text box. The input should only be real numbers, characters should be avoided. also the validation should make ...
Summary: Hi Guys, me again!!! Can anyone tell me how to format a number to two decimal places. I have a number: 145.875 But I need this to read: 145.87 I have...
Summary: can anyone help me with my java homework. i just dont know where to start. the question is write a program to mimic a calculator. input 2 real numbers...
Summary: Hi there, Do you really need to use the XOR? Because shifting the bits right will do a division by 2 in unsigned integer. For signed integers, shift a...