top of page
Search
Writer's pictureDave Parrish

Knack Equations: Default Rounding




Hey everyone, Dave Parrish here with another quick Knack video! Today, I’m diving straight into a topic that recently came up during a working session with a client. It’s a brief but intriguing topic that I thought deserved a quick video. So, let’s jump right into it.


The Curiosity About Default Rounding

While working with a client on equations related to ages and other data points, we hit a snag. My client asked me about the default rounding settings in Knack, and to be honest, I realized I didn’t have a clear answer off the top of my head. Despite my years of experience with Knack, this was one detail I hadn’t paid much attention to.

So, I decided to dig into it and share what I discovered. Spoiler: it’s a pretty straightforward concept, but it’s useful to understand.


Understanding Default Rounding

In Knack, when it comes to rounding numbers, you have options to round up or down. These are pretty intuitive: rounding up means you increase the number, and rounding down means you decrease it. But what about the default setting that Knack uses when no specific rounding direction is chosen?


Here’s the scoop: By default, Knack uses a rounding rule where numbers are rounded based on their decimal place. Specifically, if a number ends in a digit below six, it’s rounded down. For example, 6.4 becomes 6. If the number ends in six or higher, it’s rounded up. So, 6.6 becomes 7.


Practical Example

To put this into perspective, think about rounding ages. If someone is six years and six months old, rounding down would give you just six years. This makes sense for simplicity unless you need to capture the precise age, including months.


Wrapping It Up

And that’s a wrap! I promised this would be a quick one, and it definitely is one of my shortest videos yet. Sometimes, the simplest details can be the most interesting once you dig into them. Thanks for tuning in, and I hope this sheds some light on default rounding in Knack for you. See you in the next video!


Feel free to leave any questions or thoughts in the comments.


Interested in my Knack database services? ... Book a call with me here: https://calendly.com/daveparrish/callwithdave 




2 views0 comments

Comments


bottom of page