27297 Parallax Inc, 27297 Datasheet - Page 225

KIT STAMPWORKS WITH BS2-IC

27297

Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet

Specifications of 27297

Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
27297SQ
Manufacturer:
NS
Quantity:
4
When would you use */ versus **? When your fractional result is greater than one,
*/ is usually the operator of choice. When the fractional value is less than one then
** will give the best resolution.
To use */, multiply the fractional value by 256 and use this as the operand for */.
Then…
When you need to multiply by a value less than one, especially very small values, the
** operator is best. When using ** you multiply your fractional value by 65536 and
use that result as the ** operand.
Master the Modulus (//) Operator
Modulus is very simple to use, yet I still see lots of programmers doing this:
Why? Isn’t this version simpler?
Rollover is easy, what about rolling under (from zero back to some maximum).
That’s easy too:
This looks different, but behaves just like:
Pi
area = radius * radius */ Pi
scale = rawInput ** 25
count = count + 1
IF (count = 10) THEN
ENDIF
count = (count + 1) // 10
count = (count + 9) // 10
IF (count < 0) THEN
ELSE
ENDIF
count = 0
count = count – 1
count = 0
CON
$0324
' x 0.00038146

Related parts for 27297