Tuesday, September 16th, 2014
Jillion is NaN
OK, who hasn’t heard someone referring to Jillion as a very large number. Today on the bus my wife was telling me that something was a jillion times bigger. Well, I can’t remember what our conversion was, but I know I kept telling her that Jillion is not a real number. Jillion is often used when the number is so large a real number can’t be used. I have listed below real names of large numbers and their short scale.
var Million = 10e6, /* 1,000,000 */
Billion = 10e9, /* 1,000,000,000 */
Trillion = 10e12, /* 1,000,000,000,000 */
Quadrillion = 10e15, /* 1,000,000,000,000,000 */
Quintillion = 10e18, /* 1,000,000,000,000,000,000 */
Sextillion = 10e21, /* 1,000,000,000,000,000,000,000 */
Septillion = 10e24, /* 1,000,000,000,000,000,000,000,000 */
Octillion = 10e27, /* 1,000,000,000,000,000,000,000,000,000 */
Nonillion = 10e30, /* 1,000,000,000,000,000,000,000,000,000,000 */
Decillion = 10e33, /* 1,000,000,000,000,000,000,000,000,000,000,000 */
Undecillion = 10e36, /* 1,000,000,000,000,000,000,000,000,000,000,000,000 */
Duodecillion = 10e39, /* 1,000,000,000,000,000,000,000,000,000,000,000,000,000 */
Tredecillion = 10e42, /* 1,000,000,000,000,000,000,000,000,000,000,000,000,000,000 */
Quattuordecillion = 10e45 ,/* 1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 */
Quindecillion = 10e48, /* 1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 */
Sexdecillion = 10e51, /* 1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 */
Septendecillion = 10e54, /* 1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 */
Octodecillion = 10e57, /* 1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 */
Novemdecillion = 10e60, /* 1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 */
Vigintillion = 10e63; /* 1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 */
Friday, November 1st, 2013
A function
A function is a block of statements that can be used in a file.
I will create a function to change the color of my notes.
function colorMyNotes() {
var i;
var postItNoteColors = [
'#FCF0AD', '#E9E74A', '#EE5E9F', '#FFDD2A', '#F59DB9', '#F9A55B', '#D0E17D', '#36A9CE', '#EF5AA1', '#AE86BC', '#FFDF25', '#56C4E8', '#D0E068', '#CD9EC0', '#ED839D', '#FFE476', '#CDDD73', '#F35F6D', '#FAA457', '#35BEB7', '#D189B9', '#99C7BC', '#89B18C', '#738FA7', '#8A8FA3', '#82ACB8', '#F9D6AC', '#E9B561', '#E89132', '#DA7527', '#DEAC2F', '#BAB7A9', '#BFB4AF', '#CDC4C1', '#CFB69E', '#D0AD87'];
var i = 1;
$('.col-md-4').each(function() {
$(this).css('background-color', postItNoteColors[i]);
i = (i + 1) % postItNoteColors.length;
});
}
colorMyNotes();
The function works, however the color is always the same and it would be nice if it was random. Next, create an array that will randomize the color.