Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Use of deconstruct for spliting world
Use of backticks for join
Use of sort rather than reverse
Writing of a basic test
Great series! 4x4, 6x6 and 7x7 truly a challenging katas! Well done for the author. Also in C++ it is indeed makes it even more complicated.
Solving it using C++ truly a brein consuming.
Definitely need a focus to solve this in C++, but yeah I prefer JS.
I like this linked lists series :D. Good job!
Nice
note: keep the issue opened. That way it won't get republished if you keep updating stuff in there.
fair enough.
Wrong click, my bad
Why did you republish it? This is a duplicate, you're losing your time (and the one of the beta testers)
Nice
floats are base 2 and money tends to be represented in powers of 10: one cent is 10^-2
an IEEE 754 float CANNOT represent the value 0.01, similar to how base 10 cannot represent a third with a finite amount of digits. so you can't represent one cent as (float) 0.01 dollars
furthermore, different currencies may have different limits to how small fractions may be used, that might a cent, a minute of googling suggests it's a mill, a thousandth of a dollar, so three decimals, while BTC's smallest unit is is 0.00000001 - note that these are base 10 and a float cannot represent this.
these amounts also need to be exact, but float is for most purposes an approximation - if you trade with approximations then you start having disagreements on how much each person has after a transaction, you might have "destroyed" or "created" money
float is not the type that represents decimal values. float is not what you learn in gradeschool math. float is not used to represent amounts of money.
typically the correct solution is to represent money using integer, counting the amount of smallest unit. however, there are many different currencies and this might not fit for all of them.
Even though it's now retired, the fixed test about transfering 0.25 ETH to LTC is wrong, because it's not equal 0.0144 LTC, but 0.0955...
Also yeah, money conversion using floats is not the best idea imo
It does not matter. FIAT or crypto, transactions and calculations must be exact. When you use floats, calculations are not exact: some small amount of transaction is either lost, or added. Floats work the same way no matter if used for crypto or for "normal" money, the problem is the same.
Using floats for transactions in dollars, in rubles, in bitcoins, dogecoins, or seashells or bottle caps is inexact. You lose money this way. It's wrong.
and how money should be handled in software and computer programs
It's cryptocurrency btw, not FIAT. Don't know about FIAT?. It's something that U are using for transactions daily.
Loading more items...