Search Result

Collapse
9 results in 0.0014 seconds.
Keywords
Members
Tags
integer
  •  

  • Tyler Wiebe
    started a topic Integer to Word

    Integer to Word

    This is just something I created since I couldn't find anything to do it.

    It converts an integer (Example: 1495954485) to the word representation of that number (Example: one billion four hundred ninety five million nine hundred fifty four thousand four hundred eighty five).

    Code:
        public class Integer
        {
            #region Functions
    
            /// <summary>
            /// Returns
    ...
    See more | Go to post

  • How to convert string to integer with (int)/intval?

    Hi there,

    gush, frustrating. I am not a pro; but I know PHP well enough to understand how it works. And a simple conversion from string to integer via (int)$value or intval($value) should be straightforward . But it's not working in my case.

    I have a string:
    Code:
    % population: 99%
    which holds some information I extract via preg_match.

    The resulting variable $r[0] is "99". I have...
    See more | Go to post

  • Fuugie
    started a topic How do you add an entry into a 'raw_input' string?

    How do you add an entry into a 'raw_input' string?

    I am currently having trouble trying to make the entry typed in show up in the next message that should pop up. The person is suppose to type in two numbers, the second one being larger than the first. After the two numbers are entered, I'm trying to get it to say "Enter a number from (first number entered) to (second number entered): " but i keep getting an error.

    This is my code:
    Code:
    num1 = int(raw_input('Enter a small
    ...
    See more | Go to post

  • Selecting a string variable using another string variable

    I don't know if this is even possible, but I've been searching for a while now with no success. I have a range of integer variables str1, str2, str3, etc. and need to increment their respective value by one (1) when the value of a second string (varNUM) equals the number in the first string.

    Here is how I'm setting it up
    Code:
    Dim nstr1 As Integer
    Dim nstr2 As Integer
    Dim nstr3 As Integer
    Dim varNUM As
    ...
    See more | Go to post

  • Tizer
    started a topic Beginner: String into Integer

    Beginner: String into Integer

    I'm trying to change a string into an integer,
    What I'm trying to do it something like this:

    A = 3 #So A is an integer of 3
    B = raw_input(">")
    > A # So now B is a string of A
    int(B) #This gives a error that I don't really understand. :S
    print B # With out the int(B) will print A, but I want it to print 3

    Any help on how to fix the int function so it'll do that?
    See more | Go to post

  • yeshello54
    started a topic bitwise operations.
    in C

    bitwise operations.

    Hey everyone. Quick question. Say I have a hex string = "6c". I want to be able to turn that into a bit representation of 0000 0000. would i have to convert it to a integer first then do some sort of left shift on it?? Thanks.
    See more | Go to post

  • Add a new DataTable column with type "Integer"?

    I have a dataview, and I am trying to "clone" its structure only in part, by creating a new table via code. I cut out most of the columns, so this is easier to read. My question is - Why does this always seem to add things a a string?

    Later in my code, I try to sort based on "View_Order ", but it acts like a string. The values sort as 1,2,20,21,22,3, 4, NOT 1,2,3,4,20,21,2 2 like it should.

    Using Cint()...
    See more | Go to post

  • pedalpete
    started a topic number not numeric issue
    in PHP

    number not numeric issue

    I've got a value I'm grabbing a price range through preg-match from an external page.
    I take the value, and then split it into two pieces with explode, and then I split the value again using with list. (code below).

    When I look at the output, it looks like both values are numbers, but running is_numeric returns only the 2nd number as being a number.

    I've tried using settype, but no luck.
    How can i get...
    See more | Go to post

  • subhranath
    started a topic Finding limits of Integer in the system
    in Perl

    Finding limits of Integer in the system

    how do i find the limits of an integer (or some other data type) for the current system, using some code or something? (In Perl)

    P.S. i need to know the limits to make sure that the result do not overflow in the system its being executed.
    See more | Go to post
Working...