Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

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
 

brmadhukar

Advanced Member level 3
Joined
Jun 21, 2002
Messages
840
Helped
42
Reputation
84
Reaction score
11
Trophy points
1,298
Location
India
Activity points
6,783
picbasic pro+math operations

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


Hope this helps
 

rkodaira

Full Member level 6
Joined
Jun 8, 2004
Messages
332
Helped
68
Reputation
136
Reaction score
12
Trophy points
1,298
Location
Sao Paulo - Brasil
Activity points
4,092
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top