English
Includes

maths slight made - INCLUDE with leichtem code.

 
- Page 1 -



Gary12345
Hi,

I have a Include based on leichtem XPROFAN code prepares.

Download

functions from the code ablesbar!

10 kB
Hochgeladen:02/01/13
Downloadcounter262
Download
 
MfG
Gary12345
01/27/13  
 



 
- Page 4 -



Jörg
Sellmeyer
You must you some things in the Help and here in the Thread yet number of times and very thoroughly durchlesen!!
CompileMarkSeparation
Proc Addieren//Addiert Floatwerte a! und b! miteinander. Funktion ist also: Addieren(a!,b!). Beispiel dazu wäre: Addieren(2,4). Das Ergebnis wäre dann logischerweise 6

    parameters a!,b!
    declare ?_Addieren!
    set("decimals",2)//Kürzt die Zahl auf zwei Nachkommastellen
    ?_Addieren! = a!+b!//Funktion
    return ROUND(?_Addieren!,2)//Rundet die Zahlen auf zwei Nachkommastellen

En
/a>

here call You zB The Proc add with Return again on and erhälst a endlose Repeat.
and as long as You Set("Decimals",2) and Round in your procedure have, are The functions crept useless.
Also: time integrally under us... if I x = 1+3 write can, Why ought to I then x = add(1,3) write?

so I will none say, that You not go on should. Is determined ne good Übung for you. but häng still simply everything something deeper. instead of that here as Neuerfindung of geschnittenem bread anzupreisen, schreib simply, that You the whole for you to that learn very useful find.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
01/31/13  
 




Gary12345
weg becomes The thing time integrally gechillt on

with Return I will the Result Round(?_Addieren!,2) indicate. the watts me here even in the Thread said. so becomes a procedure completed.

with Set("Decimals",2) I will The Nachkommastellen on 2 curtail and these then on two Nachkommastellen rounds. See there none Error.

If I a mathematical Include write wants, Why not same alltägliche functions? see there already whom sense.

or understand I with Return what Wrong?
Hello
 
MfG
Gary12345
01/31/13  
 




Julian
Schmidt
gary12345 (31.01.13)

with Set("Decimals",2) I will The Nachkommastellen on 2 curtail and these then on two Nachkommastellen rounds. See there none Error.


The Error lying therein, that you so whom users vorschreibst, that it numbers with two Nachkommastellen use must.
rather would, if You whom Programmer whom Freiraum läst these self To define, without the it in your Include-code herumwühlen must.
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
01/31/13  
 




Julian
Schmidt
gary12345 (31.01.13)

If I a mathematical Include write wants, Why not same alltägliche functions? see there already whom sense.


then wenigsten functions, which equivalent with XProfan-functions are.

In XProfan can you in example too sums with several Summand calculate. with you can bislang only maximum two Summanden indicated will be, otherwise must one several Funktionsaufrufe ineinander link.

You could now hergehen and your function The indicated of infinite many Summanden as Parameter permit. then would your function under Umständen even advantages bring, because one less clinging set should.
if You it try want look you %ParCount in combination with of/ one whileloop-Loop on. The Parameter get You then by @!(n).
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
01/31/13  
 



 
- Page 5 -



Gary12345
With the Set("decimals",2) and ROUND I will yet for user adjust. No worry.

only i'm one Beginner and will be trouble for trouble löasen and not 10 at a single blow. moreover ought to the COde for me slight verständlich his.
and with the mehrern Summanden can also sometime time be installed. No worry

Hello
 
XProfan X2
MfG
Gary12345
01/31/13  
 




Gary12345
New Update out. with some functions can decimals! and Rundungswert indicate. with Flächen and volume have I the deliberate not made.

rather? Irgendeinen Errors in the code?
 
XProfan X2
MfG
Gary12345
01/31/13  
 




Julian
Schmidt
gary12345 (31.01.13)

New Update out. with some functions can decimals! and Rundungswert indicate. with Flächen and volume have I the deliberate not made.


i'd generally from all routines Round and SetDecimals Remove, from whom already supra named Found.

gary12345 (31.01.13)

moreover ought to the COde for me slight verständlich his.


then should You time begin your code einzurücken. so is it namely really unübersichtlich and its a distress itself therein zurechzufinden.

gary12345 (31.01.13)

and with the mehrern Summanden can also sometime time be installed.


related not only on Summanden, separate on Minuenden and and and.

for what there eig. The Info-routines? Schreib still everything directly in The routines as comment so How You it partly already made have.
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
01/31/13  
 




Gary12345
I have partly comments. The Info is only to Show there (wers need, kanns Yes use).

I have The Include for Public written and me to that learn. Thats itself yet on the Anfängerniveau befindet, is me deliberate.

I consider yet, whether I ROUND and SetDecimals from the Code removed go.

Yes I know....my Einrückungen

Hello
 
MfG
Gary12345
01/31/13  
 




Jörg
Sellmeyer
OK - I must me correct. having me verlesen and virtual, You send The function add with Return back. you have but the Variable add! with a Namensraum-day slip.
this is not necessary, there You add! only pub in a procedure deklarierst. These Variable is outside the procedure not visible and needed no Maskierung by a Namensraum.
Importent would it, The function add with ?_Addieren To slip, there the one name is, the altogether Program famous is, and To Kollisionen lead can, if someone, The same Bezeichnung for a function uses.

The Einrückungen, can you you here in the Editfeld incidentally distinguished let and need the then only still in your editor copy and abspeichern.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
02/01/13  
 




Gary12345
the would then mean, that if I The Proc with ?_Addieren marks have, too The function so hot must? means ?:add(4,2,2,2) =6.00 ?

LG
 
XProfan X2
MfG
Gary12345
02/01/13  
 




Jörg
Sellmeyer
Such time in the Help to "Namensraum".
In of/ one Include-File is not zwingendnotwendig, there the users Yes see can, which Funktionsnamen uses and be its View source or whom the Include ggf. adjust can.
I suppose, you mean ?_add(4,2,2,2)
decimals!,rounds! should Integerwerte his. one can't on 1,5 to put rounds and The Nachkommastellen can only ganzzahlig his.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
02/01/13  
 




Gary12345
New Update out. decimals and rounds get now integer staid. too get whom Procedures one Namensraum given (not The Info, I consider, whether I The ausbaue).

Vieta becomes now official not installed. will be now in a Taschenrechner works, circa then Beispielcodes mitliefern to.
 
XProfan X2
MfG
Gary12345
02/01/13  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

51.322 Views

Untitledvor 0 min.
Erhard Wirth06/14/24
XProfan Newbie02/18/23
rafl06/21/22
Member 229993110/21/19
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie