Factorials #272
darinsecurity
started this conversation in
Ideas
Factorials
#272
Replies: 1 comment 1 reply
-
How does this interact with the arbitrary amount of exclamantion marks allowed? Also, this seems to be a duplicate of #152. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is no built in features for calculating the factorials of numbers in DreamBerd. Given the use of standard notation, standard factorial notation could easily be added just like in other languages.
To find the factorial of 3:
`
const var factorial = 3!
// Auto append: Dreamberd will auto append exclamation marks for you
// const var factorial = 6
// const var factorial = 6!
// const var factorial = 720
// const var factorial = 720!
// const var factorial = 2.601 × 10^1746
...
`
This is easy and will make finding the factorials of numbers easier.
Beta Was this translation helpful? Give feedback.
All reactions