In computer programming, ellipsis notation (.. or ...) is used to denote ranges, or an unspecified number of arguments.
Most programming languages other than Perl6 require the ellipsis to be written as a series of periods; a single (Unicode) ellipsis character cannot be used.
Ranges
In some programming languages (including Ada, Perl, Ruby, Groovy, Haskell, and Pascal), a shortened two-dot ellipsis is used to represent a range of values given two endpoints; for example, to iterate through a list of integers between 1 and 100 inclusive in Perl:
In Ruby the ... operator denotes a half-open range, i.e. that includes the start value but not the end value.
In Rust the ... operator denotes an inclusive range for cases in matches and the .. operator represents a range not including the end value.
Perl overloads the ".." operator in scalar context as a statefulbistableBoolean test, roughly equivalent to "true while x but not yet y", similarly to the "," operator in sed and AWK. In Perl6 an actual Unicode ellipsis character is used to serve as a type of marker in a format string.
In computing, the modulo operation finds the remainder after division of one number by another (sometimes called modulus).
Given two positive numbers, a (the dividend) and n (the divisor), amodulon (abbreviated as a mod n) is the remainder of the Euclidean division of a by n. For instance, the expression "5 mod 2" would evaluate to 1 because 5 divided by 2 leaves a quotient of 2 and a remainder of 1, while "9 mod 3" would evaluate to 0 because the division of 9 by 3 has a quotient of 3 and leaves a remainder of 0; there is nothing to subtract from 9 after multiplying 3 times 3. (Note that doing the division with a calculator will not show the result referred to here by this operation; the quotient will be expressed as a decimal fraction.)
Although typically performed with a and n both being integers, many computing systems allow other types of numeric operands. The range of numbers for an integer modulo of n is 0 to n − 1. (n mod 1 is always 0; n mod 0 is undefined, possibly resulting in a division by zero error in computer programming languages.) See modular arithmetic for an older and related convention applied in number theory.
In contrast to the ternary conditional if operator used as x ? x: y, but like the binary Elvis operator used as x ?: y, the null coalescing operator is a binary operator and thus evaluates its operands at most once, which is significant if the evaluation of x has side-effects.
C#
In C#, the null coalescing operator is ??. It is most often used to simplify null expressions as follows:
For example, if one wishes to implement some C# code to give a page a default title if none is present, one may use the following statement:
Liberman is the fifth studio album by American singer-songwriter Vanessa Carlton, released on October 23, 2015, through Dine Alone Records. It is the follow up to Carlton's 2011 album Rabbits on the Run and marks her first release since signing with Dine Alone Records. The title of the album comes from an oil painting made by Carlton's late grandfather, whose given surname was Liberman.
Background and writing
Following the 2011 release Rabbits on the Run, Carlton took time off to get married, start a family and write another album. She tells CBS News that these changes in her life are reflected in Liberman's songs and that she "wanted the whole album to feel like an escape type of album, where you put it on and you feel like you're in this dreamy state."
To avoid preconceived notions, demos recorded were sent to Dine Alone Records without Carlton's name attached. Label president Joel Carriere recalls hearing the demos and tells The Toronto Star, "The songs were amazing, it was atmospheric, it kind of fit into what we’re all into ... and we never would have guessed it was Vanessa Carlton because her voice has developed so much since her pop songs 14 years ago and the songwriting had obviously changed. We were, like: 'Yeah, we want to do this. But what is it we’re doing?'"
Ellipsis (plural ellipses; from the Ancient Greek: ἔλλειψις, élleipsis, "omission" or "falling short") is a series of dots (typically three, such as "…") that usually indicates an intentional omission of a word, sentence, or whole section from a text without altering its original meaning. Depending on their context and placement in a sentence, ellipses can also indicate an unfinished thought, a leading statement, a slight pause, a mysterious or echoing voice, or a nervous or awkward silence. Aposiopesis is the use of an ellipsis to trail off into silence—for example: "But I thought he was . . ." When placed at the beginning or end of a sentence, the ellipsis can also inspire a feeling of melancholy or longing.
The most common form of an ellipsis is a row of three periods or full stops (. . .) or a precomposed triple-dot glyph (…). The usage of the em dash (—) can overlap the usage of the ellipsis, especially in dialogue. Style guides often have their own rules governing the use of ellipses. For example, the Chicago Manual of Style recommends that an ellipsis be formed by typing three periods, each with a space on both sides.
Other units in this course below:
Unit 1: http://www.youtube.com/playlist?list=PLF6D042E98ED5C691
Unit 2: http://www.youtube.com/playlist?list=PL6A1005157875332F
Unit 3: http://www.youtube.com/playlist?list=PL62AE4EA617CF97D7
Unit 4: http://www.youtube.com/playlist?list=PL886F98D98288A232
Unit 5: http://www.youtube.com/playlist?list=PLBA8DEB5640ECBBDD
Unit 6: http://www.youtube.com/playlist?list=PL6B5C5EC17F3404D6
Unit 7: http://www.youtube.com/playlist?list=PL6511E7098EC577BE
Q&A: http://www.youtube.com/playlist?list=PLDA5F9F71AFF4B69E
To gain access to interactive quizzes, homework, programming assignments and a helpful community, join the class at http://www.udacity.com
---
In this video, you'll get a comprehensive introduction to the Modulus Operator. Whether you're a beginner or l...
published: 29 May 2012
Modulo Operation, Basic Problems, Computing, Mod Operation
In this video, I discuss the basics of the modulo operation and how to use it to solve simple problems.
Thanks!
published: 23 Jan 2019
What is Modular Arithmetic - Introduction to Modular Arithmetic - Cryptography - Lesson 2
Modular Arithmetic is a fundamental component of cryptography. In this video, I explain the basics of modular arithmetic with a few simple examples.
Join this channel to get access to perks:
https://www.youtube.com/channel/UCn2SbZWi4yTkmPUj5wnbfoA/join
:)
What does a ≡ b (mod n) mean? Basic Modular Arithmetic, Congruence
Basic congruence introduction in modular arithmetic. We will go over 3 ways to interpret a ≡ b (mod n), and you will see this in a number theory or a discrete math class. Learn how to solve congruence, subscribe to @blackpenredpen
💪 Support this channel, https://www.patreon.com/blackpenredpen
published: 23 Apr 2018
Calculate mod (the Remainder) using calculator with one step ! (991ES)
The best method to calculate the modulus (the remainder) of a number using a normal scientific calculator Casio (557 or 991).
calculate mod with only one step!
find the remainder with only one step!
To download Casio scientific calculator for computer: https://goo.gl/ByLdaN
published: 24 Jan 2019
Basics of Modular Arithmetic
Join this channel to get access to perks:→ https://bit.ly/3cBgfR1
My merch → https://teespring.com/stores/sybermath?page=1
Follow me → https://twitter.com/SyberMath
Subscribe → https://www.youtube.com/SyberMath?sub_confirmation=1
Suggest → https://forms.gle/A5bGhTyZqYw937W58
If you need to post a picture of your solution or idea:
https://twitter.com/intent/tweet?text=@SyberMath
#NumberTheoryTopics #ModularArithmetic
EXPLORE 😎:
A rational equation. A challenge in algebra: https://youtu.be/XUq96gvZ_vA
Finding the area of a weird region in a quarter circle: https://youtu.be/1Ckw39vxETM
Solving an exponential equation: https://youtu.be/in8dH2LQaSY
PLAYLISTS 🎵 :
Number Theory Problems: https://www.youtube.com/playlist?list=PLvPOIUdohGFBjmKtCL0LXGPBxr7CVyjJV
Challenging Math Problems: ht...
published: 03 May 2021
What is MODULO? | JavaScript in LESS-THAN 3 | JavaScript Beginner Series
Follow Me on Twitter: www.twitter.com/AnnaJMcDougall
published: 24 Jan 2021
Curso de Java desde Cero | PROYECTO COMPLETO, MOD. CLIENTES- VENTANA ACTUALIZAR CLIENTES (video 112)
Patreon ➤ https://www.patreon.com/jacobsorber
Courses ➤ https://jacobsorber.thinkific.com
Website ➤ https://www.jacobsorber.com
---
Is the modulus operator (%) useful? //. What is the modulus operator useful for? Why don't new programmers use it more often, even after they learn what it does?
This video provides a few useful scenarios when you might want to start using it in your programs, specifically when trying to determine even division and manage circular buffers.
The examples are in C, but the use of the operator applies easily to C++, java, python, ruby, and most other imperative languages.
***
Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming...
Other units in this course below:
Unit 1: http://www.youtube.com/playlist?list=PLF6D042E98ED5C691
Unit 2: http://www.youtube.com/playlist?list=PL6A1005157875332...
Other units in this course below:
Unit 1: http://www.youtube.com/playlist?list=PLF6D042E98ED5C691
Unit 2: http://www.youtube.com/playlist?list=PL6A1005157875332F
Unit 3: http://www.youtube.com/playlist?list=PL62AE4EA617CF97D7
Unit 4: http://www.youtube.com/playlist?list=PL886F98D98288A232
Unit 5: http://www.youtube.com/playlist?list=PLBA8DEB5640ECBBDD
Unit 6: http://www.youtube.com/playlist?list=PL6B5C5EC17F3404D6
Unit 7: http://www.youtube.com/playlist?list=PL6511E7098EC577BE
Q&A: http://www.youtube.com/playlist?list=PLDA5F9F71AFF4B69E
To gain access to interactive quizzes, homework, programming assignments and a helpful community, join the class at http://www.udacity.com
---
In this video, you'll get a comprehensive introduction to the Modulus Operator. Whether you're a beginner or looking to refine your skills, this video will help you master the fundamentals. 🌟
If you enjoyed this video and want to dive deeper into the world of programming, then check out our full catalog: https://bit.ly/3Vr0uRo. Forge your future in tech with Udacity!
---
Connect with us on social! 🌐
Instagram: https://www.instagram.com/udacity/
LinkedIn: https://www.linkedin.com/school/udacity/
Facebook: https://www.facebook.com/Udacity/
X/Twitter: https://twitter.com/udacity
Other units in this course below:
Unit 1: http://www.youtube.com/playlist?list=PLF6D042E98ED5C691
Unit 2: http://www.youtube.com/playlist?list=PL6A1005157875332F
Unit 3: http://www.youtube.com/playlist?list=PL62AE4EA617CF97D7
Unit 4: http://www.youtube.com/playlist?list=PL886F98D98288A232
Unit 5: http://www.youtube.com/playlist?list=PLBA8DEB5640ECBBDD
Unit 6: http://www.youtube.com/playlist?list=PL6B5C5EC17F3404D6
Unit 7: http://www.youtube.com/playlist?list=PL6511E7098EC577BE
Q&A: http://www.youtube.com/playlist?list=PLDA5F9F71AFF4B69E
To gain access to interactive quizzes, homework, programming assignments and a helpful community, join the class at http://www.udacity.com
---
In this video, you'll get a comprehensive introduction to the Modulus Operator. Whether you're a beginner or looking to refine your skills, this video will help you master the fundamentals. 🌟
If you enjoyed this video and want to dive deeper into the world of programming, then check out our full catalog: https://bit.ly/3Vr0uRo. Forge your future in tech with Udacity!
---
Connect with us on social! 🌐
Instagram: https://www.instagram.com/udacity/
LinkedIn: https://www.linkedin.com/school/udacity/
Facebook: https://www.facebook.com/Udacity/
X/Twitter: https://twitter.com/udacity
Modular Arithmetic is a fundamental component of cryptography. In this video, I explain the basics of modular arithmetic with a few simple examples.
Join this ...
Modular Arithmetic is a fundamental component of cryptography. In this video, I explain the basics of modular arithmetic with a few simple examples.
Join this channel to get access to perks:
https://www.youtube.com/channel/UCn2SbZWi4yTkmPUj5wnbfoA/join
:)
Modular Arithmetic is a fundamental component of cryptography. In this video, I explain the basics of modular arithmetic with a few simple examples.
Join this channel to get access to perks:
https://www.youtube.com/channel/UCn2SbZWi4yTkmPUj5wnbfoA/join
:)
Basic congruence introduction in modular arithmetic. We will go over 3 ways to interpret a ≡ b (mod n), and you will see this in a number theory or a discrete m...
Basic congruence introduction in modular arithmetic. We will go over 3 ways to interpret a ≡ b (mod n), and you will see this in a number theory or a discrete math class. Learn how to solve congruence, subscribe to @blackpenredpen
💪 Support this channel, https://www.patreon.com/blackpenredpen
Basic congruence introduction in modular arithmetic. We will go over 3 ways to interpret a ≡ b (mod n), and you will see this in a number theory or a discrete math class. Learn how to solve congruence, subscribe to @blackpenredpen
💪 Support this channel, https://www.patreon.com/blackpenredpen
The best method to calculate the modulus (the remainder) of a number using a normal scientific calculator Casio (557 or 991).
calculate mod with only one step!...
The best method to calculate the modulus (the remainder) of a number using a normal scientific calculator Casio (557 or 991).
calculate mod with only one step!
find the remainder with only one step!
To download Casio scientific calculator for computer: https://goo.gl/ByLdaN
The best method to calculate the modulus (the remainder) of a number using a normal scientific calculator Casio (557 or 991).
calculate mod with only one step!
find the remainder with only one step!
To download Casio scientific calculator for computer: https://goo.gl/ByLdaN
Join this channel to get access to perks:→ https://bit.ly/3cBgfR1
My merch → https://teespring.com/stores/sybermath?page=1
Follow me → https://twitter.com/Sybe...
Join this channel to get access to perks:→ https://bit.ly/3cBgfR1
My merch → https://teespring.com/stores/sybermath?page=1
Follow me → https://twitter.com/SyberMath
Subscribe → https://www.youtube.com/SyberMath?sub_confirmation=1
Suggest → https://forms.gle/A5bGhTyZqYw937W58
If you need to post a picture of your solution or idea:
https://twitter.com/intent/tweet?text=@SyberMath
#NumberTheoryTopics #ModularArithmetic
EXPLORE 😎:
A rational equation. A challenge in algebra: https://youtu.be/XUq96gvZ_vA
Finding the area of a weird region in a quarter circle: https://youtu.be/1Ckw39vxETM
Solving an exponential equation: https://youtu.be/in8dH2LQaSY
PLAYLISTS 🎵 :
Number Theory Problems: https://www.youtube.com/playlist?list=PLvPOIUdohGFBjmKtCL0LXGPBxr7CVyjJV
Challenging Math Problems: https://www.youtube.com/playlist?list=PLvPOIUdohGFDy3byhJ1wBQPVFwu9ZlM-7
Trigonometry Problems: https://www.youtube.com/playlist?list=PLvPOIUdohGFAbHlGlzKTHpOzDh2cQCN56
Diophantine Equations and Systems: https://www.youtube.com/playlist?list=PLvPOIUdohGFBTgY5FKFfalwTFtNieOY5I
Calculus: https://www.youtube.com/playlist?list=PLvPOIUdohGFAmPjF08A7llzsa4qtIAa_K
ADDITIONAL TOPICS:
Chinese Remainder Theorem
Fermat’s Little Theorem
Euler’s Theorem
Primitive Roots and Power Residues
Hensel’s Lemma
Quadratic Residues and Quadratic Reciprocity
RESOURCES:
https://en.wikipedia.org/wiki/Modular_arithmetic
https://www.britannica.com/science/modular-arithmetic
https://www.geeksforgeeks.org/modular-arithmetic/
https://crypto.stanford.edu/pbc/notes/numbertheory/arith.html
Join this channel to get access to perks:→ https://bit.ly/3cBgfR1
My merch → https://teespring.com/stores/sybermath?page=1
Follow me → https://twitter.com/SyberMath
Subscribe → https://www.youtube.com/SyberMath?sub_confirmation=1
Suggest → https://forms.gle/A5bGhTyZqYw937W58
If you need to post a picture of your solution or idea:
https://twitter.com/intent/tweet?text=@SyberMath
#NumberTheoryTopics #ModularArithmetic
EXPLORE 😎:
A rational equation. A challenge in algebra: https://youtu.be/XUq96gvZ_vA
Finding the area of a weird region in a quarter circle: https://youtu.be/1Ckw39vxETM
Solving an exponential equation: https://youtu.be/in8dH2LQaSY
PLAYLISTS 🎵 :
Number Theory Problems: https://www.youtube.com/playlist?list=PLvPOIUdohGFBjmKtCL0LXGPBxr7CVyjJV
Challenging Math Problems: https://www.youtube.com/playlist?list=PLvPOIUdohGFDy3byhJ1wBQPVFwu9ZlM-7
Trigonometry Problems: https://www.youtube.com/playlist?list=PLvPOIUdohGFAbHlGlzKTHpOzDh2cQCN56
Diophantine Equations and Systems: https://www.youtube.com/playlist?list=PLvPOIUdohGFBTgY5FKFfalwTFtNieOY5I
Calculus: https://www.youtube.com/playlist?list=PLvPOIUdohGFAmPjF08A7llzsa4qtIAa_K
ADDITIONAL TOPICS:
Chinese Remainder Theorem
Fermat’s Little Theorem
Euler’s Theorem
Primitive Roots and Power Residues
Hensel’s Lemma
Quadratic Residues and Quadratic Reciprocity
RESOURCES:
https://en.wikipedia.org/wiki/Modular_arithmetic
https://www.britannica.com/science/modular-arithmetic
https://www.geeksforgeeks.org/modular-arithmetic/
https://crypto.stanford.edu/pbc/notes/numbertheory/arith.html
Patreon ➤ https://www.patreon.com/jacobsorber
Courses ➤ https://jacobsorber.thinkific.com
Website ➤ https://www.jacobsorber.com
---
Is the modulus operator (%...
Patreon ➤ https://www.patreon.com/jacobsorber
Courses ➤ https://jacobsorber.thinkific.com
Website ➤ https://www.jacobsorber.com
---
Is the modulus operator (%) useful? //. What is the modulus operator useful for? Why don't new programmers use it more often, even after they learn what it does?
This video provides a few useful scenarios when you might want to start using it in your programs, specifically when trying to determine even division and manage circular buffers.
The examples are in C, but the use of the operator applies easily to C++, java, python, ruby, and most other imperative languages.
***
Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.
About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.
More about me and what I do:
https://www.jacobsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/
To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [https://www.patreon.com/jacobsorber]
+ rep the channel with nerdy merch --- [https://teespring.com/stores/jacob-sorbers-store]
Source code is also available to Patreon supporters. --- [https://jsorber-youtube-source.herokuapp.com/]
Patreon ➤ https://www.patreon.com/jacobsorber
Courses ➤ https://jacobsorber.thinkific.com
Website ➤ https://www.jacobsorber.com
---
Is the modulus operator (%) useful? //. What is the modulus operator useful for? Why don't new programmers use it more often, even after they learn what it does?
This video provides a few useful scenarios when you might want to start using it in your programs, specifically when trying to determine even division and manage circular buffers.
The examples are in C, but the use of the operator applies easily to C++, java, python, ruby, and most other imperative languages.
***
Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.
About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.
More about me and what I do:
https://www.jacobsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/
To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [https://www.patreon.com/jacobsorber]
+ rep the channel with nerdy merch --- [https://teespring.com/stores/jacob-sorbers-store]
Source code is also available to Patreon supporters. --- [https://jsorber-youtube-source.herokuapp.com/]
Other units in this course below:
Unit 1: http://www.youtube.com/playlist?list=PLF6D042E98ED5C691
Unit 2: http://www.youtube.com/playlist?list=PL6A1005157875332F
Unit 3: http://www.youtube.com/playlist?list=PL62AE4EA617CF97D7
Unit 4: http://www.youtube.com/playlist?list=PL886F98D98288A232
Unit 5: http://www.youtube.com/playlist?list=PLBA8DEB5640ECBBDD
Unit 6: http://www.youtube.com/playlist?list=PL6B5C5EC17F3404D6
Unit 7: http://www.youtube.com/playlist?list=PL6511E7098EC577BE
Q&A: http://www.youtube.com/playlist?list=PLDA5F9F71AFF4B69E
To gain access to interactive quizzes, homework, programming assignments and a helpful community, join the class at http://www.udacity.com
---
In this video, you'll get a comprehensive introduction to the Modulus Operator. Whether you're a beginner or looking to refine your skills, this video will help you master the fundamentals. 🌟
If you enjoyed this video and want to dive deeper into the world of programming, then check out our full catalog: https://bit.ly/3Vr0uRo. Forge your future in tech with Udacity!
---
Connect with us on social! 🌐
Instagram: https://www.instagram.com/udacity/
LinkedIn: https://www.linkedin.com/school/udacity/
Facebook: https://www.facebook.com/Udacity/
X/Twitter: https://twitter.com/udacity
Modular Arithmetic is a fundamental component of cryptography. In this video, I explain the basics of modular arithmetic with a few simple examples.
Join this channel to get access to perks:
https://www.youtube.com/channel/UCn2SbZWi4yTkmPUj5wnbfoA/join
:)
Basic congruence introduction in modular arithmetic. We will go over 3 ways to interpret a ≡ b (mod n), and you will see this in a number theory or a discrete math class. Learn how to solve congruence, subscribe to @blackpenredpen
💪 Support this channel, https://www.patreon.com/blackpenredpen
The best method to calculate the modulus (the remainder) of a number using a normal scientific calculator Casio (557 or 991).
calculate mod with only one step!
find the remainder with only one step!
To download Casio scientific calculator for computer: https://goo.gl/ByLdaN
Join this channel to get access to perks:→ https://bit.ly/3cBgfR1
My merch → https://teespring.com/stores/sybermath?page=1
Follow me → https://twitter.com/SyberMath
Subscribe → https://www.youtube.com/SyberMath?sub_confirmation=1
Suggest → https://forms.gle/A5bGhTyZqYw937W58
If you need to post a picture of your solution or idea:
https://twitter.com/intent/tweet?text=@SyberMath
#NumberTheoryTopics #ModularArithmetic
EXPLORE 😎:
A rational equation. A challenge in algebra: https://youtu.be/XUq96gvZ_vA
Finding the area of a weird region in a quarter circle: https://youtu.be/1Ckw39vxETM
Solving an exponential equation: https://youtu.be/in8dH2LQaSY
PLAYLISTS 🎵 :
Number Theory Problems: https://www.youtube.com/playlist?list=PLvPOIUdohGFBjmKtCL0LXGPBxr7CVyjJV
Challenging Math Problems: https://www.youtube.com/playlist?list=PLvPOIUdohGFDy3byhJ1wBQPVFwu9ZlM-7
Trigonometry Problems: https://www.youtube.com/playlist?list=PLvPOIUdohGFAbHlGlzKTHpOzDh2cQCN56
Diophantine Equations and Systems: https://www.youtube.com/playlist?list=PLvPOIUdohGFBTgY5FKFfalwTFtNieOY5I
Calculus: https://www.youtube.com/playlist?list=PLvPOIUdohGFAmPjF08A7llzsa4qtIAa_K
ADDITIONAL TOPICS:
Chinese Remainder Theorem
Fermat’s Little Theorem
Euler’s Theorem
Primitive Roots and Power Residues
Hensel’s Lemma
Quadratic Residues and Quadratic Reciprocity
RESOURCES:
https://en.wikipedia.org/wiki/Modular_arithmetic
https://www.britannica.com/science/modular-arithmetic
https://www.geeksforgeeks.org/modular-arithmetic/
https://crypto.stanford.edu/pbc/notes/numbertheory/arith.html
Patreon ➤ https://www.patreon.com/jacobsorber
Courses ➤ https://jacobsorber.thinkific.com
Website ➤ https://www.jacobsorber.com
---
Is the modulus operator (%) useful? //. What is the modulus operator useful for? Why don't new programmers use it more often, even after they learn what it does?
This video provides a few useful scenarios when you might want to start using it in your programs, specifically when trying to determine even division and manage circular buffers.
The examples are in C, but the use of the operator applies easily to C++, java, python, ruby, and most other imperative languages.
***
Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.
About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.
More about me and what I do:
https://www.jacobsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/
To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [https://www.patreon.com/jacobsorber]
+ rep the channel with nerdy merch --- [https://teespring.com/stores/jacob-sorbers-store]
Source code is also available to Patreon supporters. --- [https://jsorber-youtube-source.herokuapp.com/]
In computer programming, ellipsis notation (.. or ...) is used to denote ranges, or an unspecified number of arguments.
Most programming languages other than Perl6 require the ellipsis to be written as a series of periods; a single (Unicode) ellipsis character cannot be used.
Ranges
In some programming languages (including Ada, Perl, Ruby, Groovy, Haskell, and Pascal), a shortened two-dot ellipsis is used to represent a range of values given two endpoints; for example, to iterate through a list of integers between 1 and 100 inclusive in Perl:
In Ruby the ... operator denotes a half-open range, i.e. that includes the start value but not the end value.
In Rust the ... operator denotes an inclusive range for cases in matches and the .. operator represents a range not including the end value.
Perl overloads the ".." operator in scalar context as a statefulbistableBoolean test, roughly equivalent to "true while x but not yet y", similarly to the "," operator in sed and AWK. In Perl6 an actual Unicode ellipsis character is used to serve as a type of marker in a format string.