summaryrefslogtreecommitdiffhomepage
path: root/solidity.html.markdown
diff options
context:
space:
mode:
authorNemil Dalal <nemild@gmail.com>2015-12-29 10:59:01 -0500
committerNemil Dalal <nemild@gmail.com>2015-12-29 10:59:01 -0500
commitfc528c92ddbdca1d0cb3a5c8f3ad477fbc115ad9 (patch)
tree6f1f69591e9f91f79a75f9d1379a5f7a09ad6eae /solidity.html.markdown
parentbdd8a8b0c87d58332f39facc60d6ab7d576764df (diff)
Cleaned up data types
Diffstat (limited to 'solidity.html.markdown')
-rw-r--r--solidity.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/solidity.html.markdown b/solidity.html.markdown
index ebc58491..d84b6a68 100644
--- a/solidity.html.markdown
+++ b/solidity.html.markdown
@@ -117,12 +117,10 @@ uint x;
// int of 256 bits, cannot be changed after instantiation
int constant a = 8;
-
-// with 'constant', compiler replaces each occurrence with actual value
int256 constant a = 8; // same effect as line above, here the 256 is explicit
uint constant VERSION_ID = 0x123A1; // A hex constant
+// with 'constant', compiler replaces each occurrence with actual value
-// Be careful that you don't overflow, and protect against attacks that do
// For int and uint, can explicitly set space in steps of 8 up to 256
// e.g., int8, int16, int24
@@ -130,6 +128,8 @@ uint8 b;
int64 c;
uint248 e;
+// Be careful that you don't overflow, and protect against attacks that do
+
// No random functions built in, use other contracts for randomness
// Type casting