division in picbasic pro

Status
Not open for further replies.

karim aslan

Newbie level 4
Joined
Mar 14, 2007
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
egypt
Activity points
1,303
picbasic division

is the picbasic pro accepts the decimal points specially in division (ex: 25.6/2.5)
if not what can i do?????
thanx in advance
 

picbasic pro+math operations

For division if you do not need huge precision use a LUT for 1/x and multiply.


Hope this helps
 

PBP can do only integer math operations, but you can shift the decimal point to reflect your expression, in your example: 25.6/2.5 = 256/25.

PBP also can do Floating Point simple math operations (sum, sub, division and multiply) using the Microchip routines. Check for the FP file, examples and explanation available at Melabs site.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…