# Everyone's Recent Snippets Tagged number

0 494 posted 12 years ago by dubogii
An example of Karatsuba algorithm for multiplication of n digit numbers.
0 592 posted 12 years ago by josepino
This simple function allows you to find a weeks position in the month based on a given date. For instance I needed to alert the user their date was the "Second Week Of January" during a given month. I may never use it again but it came in very hand...
0 2069 posted 12 years ago by aristoworks
converts numbers to their english style
0 296 posted 12 years ago by god_of_nothing
2 596 posted 12 years ago by dubogii
1 833 posted 12 years ago by adrianparr
Full credit for this goes to Deva Raj (@nsdevaraj). This is also a good function for doing a similar thing, http://snipplr.com/view/27954/as3-convert-a-number-to-a-string/
2 770 posted 12 years ago by adrianparr
I needed to split a decimal number into the integer part and the fraction part and save both of them in different variables
0 851 posted 12 years ago by bwangila
From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
1 742 posted 12 years ago by Activetuts
This seems to be a bug.. or not.. But explains how to fix it anyway.
0 529 posted 12 years ago by godstroke
Sometimes you need to tween a number (for example from 1-100) and to get the number
1 472 posted 12 years ago by burnandbass
0 412 posted 12 years ago by metoikos
0 447 posted 12 years ago by laurentzziu
0 428 posted 12 years ago by laurentzziu
it parses given string and returns 1st number it encounters ( it will replace comas with dots so floats formatted as 12,345 could be 12.345 ( some countries use that ) ) then u can parse returned value as a number / float / int - do what You need...
0 562 posted 12 years ago by stryju
Will help convert string to number OR get number in a selected string.
0 546 posted 12 years ago by carbonr
<p>This function returns a random number within a range.</p><p>For example:</p><p>// assigns low and high values for range</p><p><code>int rangeLow = 34, rangeHigh = 78;</code></p><p>// computes a random number between 34 and 78</p><p><code>myRandomN...
0 468 posted 12 years ago by dblandin
30 minutes spent on this :)
4 506 posted 12 years ago by TEHEK
0 462 posted 12 years ago by Groove
0 683 posted 12 years ago by henriquemoody
The player selects a range from 0 to n, remembers a number in this range and then the script asks the player a question trying to guess the number. The PC will always guess the correct number.\r\n\r\nI could have added more varied questions, but the...
0 416 posted 12 years ago by Sverri
A simple PHP application for counting how many views a page gets.
0 435 posted 12 years ago by FelixT
Format number using a comma as a separator
3 586 posted 12 years ago by Tmeister
Simple function to return a decimal value between the minValue and the maxValue.
0 1131 posted 12 years ago by Jamie
Simple function to return a value between the minValue and the maxValue.
0 494 posted 12 years ago by Jamie
Always need one of these on hand. Feed it a minimum number and a maximum number and it returns a random within that range. Super useful.
1 556 posted 12 years ago by IsoJon
0 653 posted 13 years ago by bjoernwilmsmannde
This returns a string with a single space after the fifth character. Useful for displaying a UK mobile number which is easy to read.
0 594 posted 13 years ago by adrianparr
0 425 posted 13 years ago by jodm
1 573 posted 13 years ago by adkatrit