summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2016-03-18 17:40:40 +0000
committerDominik Picheta <dominikpicheta@googlemail.com>2016-03-18 17:40:40 +0000
commit8dade039d7c5342029e8baf8c6227e07977b428b (patch)
treed0b4b4d4d706c51f9d72559bcafb55cc8ea6a014 /lib
parent669917c72605283824c7bea2b13fa91fc494905b (diff)
parent05418890ca8342326f6d8ee2e213f9686538ee6f (diff)
downloadNim-8dade039d7c5342029e8baf8c6227e07977b428b.tar.gz
Merge pull request #3976 from gmpreussner/devel
Added TAU constant.
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/math.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim
index b0104336e..84c8d3b11 100644
--- a/lib/pure/math.nim
+++ b/lib/pure/math.nim
@@ -44,6 +44,7 @@ when not defined(js) and not defined(nimscript):
 
 const
   PI* = 3.1415926535897932384626433 ## the circle constant PI (Ludolph's number)
+  TAU* = 2.0 * PI ## the circle constant TAU (= 2 * PI)
   E* = 2.71828182845904523536028747 ## Euler's number
 
   MaxFloat64Precision* = 16 ## maximum number of meaningful digits
152'>152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250