Result justified?
|
06-07-2015, 07:54 PM
Post: #1
|
|||
|
|||
Result justified?
Hello all,
how can i make that result justified. See at the Picture! Best Regards Heino |
|||
06-07-2015, 07:58 PM
Post: #2
|
|||
|
|||
RE: Result justified?
EXPORT KorTrans()
BEGIN LOCAL X,Y,φ,Xs,Ys; RECT_P(); INPUT({{X,[0],{20,15,0}}, {Y,[0],{20,15,1}}, {φ,[0],{20,15,2}}}, "Koordinatentransformation", {"X [KN]","Y [KN]","φ [°]"}, {"","",""}); Xs:=ROUND((X*COS(φ)-Y*SIN(φ)),2); Ys:=ROUND((X*SIN(φ)+Y*COS(φ)),2); TEXTOUT_P(Xs,150,25); TEXTOUT_P(Ys,150,50); FREEZE; END; |
|||
06-07-2015, 11:09 PM
Post: #3
|
|||
|
|||
RE: Result justified?
Not sure if anything here will answer your question:
Code:
|
|||
06-08-2015, 09:07 AM
Post: #4
|
|||
|
|||
RE: Result justified?
Hello DrD,
thank for your answer. You are right it`s degree. But I mean: The output figures should be aligned to the right side, no matter if they have a positive or negative sign. Which settings have to be changed to achieve that? Best Regards Heino |
|||
06-08-2015, 05:46 PM
(This post was last modified: 06-08-2015 05:49 PM by eried.)
Post: #5
|
|||
|
|||
RE: Result justified?
(06-08-2015 09:07 AM)Heino Wrote: Hello DrD, There is no setting to do that, but you can measure the output first: Code: TEXTOUTR(txt,x,y) My website: ried.cl |
|||
06-08-2015, 07:28 PM
Post: #6
|
|||
|
|||
RE: Result justified?
Hello eried,
this is exactly what i was looking for. Many Thanks to you and to DrD. Best Regards Heino |
|||
06-08-2015, 09:23 PM
Post: #7
|
|||
|
|||
RE: Result justified?
Perhaps you can use the size() to advantage:
Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)