Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jamiebuilds
Created November 2, 2013 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiebuilds/7282272 to your computer and use it in GitHub Desktop.
Save jamiebuilds/7282272 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@function parse-int($number) {
@return $number / ($number * 0 + 1);
}
large number modulus parse-int 3px {
test-1a: 10 % 3;
test-1b: 10 % parse-int(3px);
test-2a: 1000000000000000000000000000 % 3;
test-2b: 1000000000000000000000000000 % parse-int(3px);
test-3a: 10000000000000000000000000000 % 3;
test-3b: 10000000000000000000000000000 % parse-int(3px);
}
3 times large numbers {
test-1: 3 * 10000000000000000000;
test-2: 3 * 100000000000000000000;
test-3: 3 * 1000000000000000000000;
test-4: 3 * 10000000000000000000000;
test-5: 3 * 100000000000000000000000;
test-6: 3 * 1000000000000000000000000;
test-7: 3 * 10000000000000000000000000;
}
3 divided by one times large numbers {
test-1: (3 / 1) * 10000000000000000000;
test-2: (3 / 1) * 100000000000000000000;
test-3: (3 / 1) * 1000000000000000000000;
test-4: (3 / 1) * 10000000000000000000000;
test-5: (3 / 1) * 100000000000000000000000;
test-6: (3 / 1) * 1000000000000000000000000;
test-7: (3 / 1) * 10000000000000000000000000;
}
large numbers modulus 3 {
test-1: 10000000000000000000 % 3;
test-2: 100000000000000000000 % 3;
test-3: 1000000000000000000000 % 3;
test-4: 10000000000000000000000 % 3;
test-5: 100000000000000000000000 % 3;
test-6: 1000000000000000000000000 % 3;
test-7: 10000000000000000000000000 % 3;
}
large numbers modulus 3 divided by 1 {
test-1: 10000000000000000000 % (3 / 1);
test-2: 100000000000000000000 % (3 / 1);
test-3: 1000000000000000000000 % (3 / 1);
test-4: 10000000000000000000000 % (3 / 1);
test-5: 100000000000000000000000 % (3 / 1);
test-6: 1000000000000000000000000 % (3 / 1);
test-7: 10000000000000000000000000 % (3 / 1);
}
3 divided by 1 times large number {
test-1: (3 / 1) * 11111111111111111111;
test-2: (3 / 1) * 111111111111111111111;
test-3: (3 / 1) * 1111111111111111111111;
test-4: (3 / 1) * 11111111111111111111111;
test-5: (3 / 1) * 111111111111111111111111;
test-6: (3 / 1) * 1111111111111111111111111;
test-7: (3 / 1) * 11111111111111111111111111;
}
large number modulus parse-int 3px {
test-1a: 1;
test-1b: 1;
test-2a: 1;
test-2b: 1;
test-3a: 1;
test-3b: 2;
}
3 times large numbers {
test-1: 30000000000000000000;
test-2: 300000000000000000000;
test-3: 3000000000000000000000;
test-4: 30000000000000000000000;
test-5: 300000000000000000000000;
test-6: 3000000000000000000000000;
test-7: 30000000000000000000000000;
}
3 divided by one times large numbers {
test-1: 30000000000000000000;
test-2: 300000000000000000000;
test-3: 3000000000000000000000;
test-4: 30000000000000000000000;
test-5: 299999999999999974834176;
test-6: 2999999999999999949668352;
test-7: 30000000000000004865392640;
}
large numbers modulus 3 {
test-1: 1;
test-2: 1;
test-3: 1;
test-4: 1;
test-5: 1;
test-6: 1;
test-7: 1;
}
large numbers modulus 3 divided by 1 {
test-1: 1;
test-2: 1;
test-3: 1;
test-4: 1;
test-5: 2;
test-6: 0;
test-7: 1;
}
3 divided by 1 times large number {
test-1: 33333333333333331968;
test-2: 333333333333333377024;
test-3: 3333333333333332983808;
test-4: 33333333333333336129536;
test-5: 333333333333333327740928;
test-6: 3333333333333333277409280;
test-7: 33333333333333334921576448;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment