• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

absolute value in parameters

  • Thread starter Thread starter Tarkus
  • Start date Start date

Tarkus

Guest
will be old age, but I no longer remember how it is done in parameters, to transform a value in mm into absolute value (on).
it seemed to me that to have a parameter on, it was enough to multiply a value in mm*1su, but it does not work
 
theoretically written so it should work if your variable has been declared as an entire or real. It is probably a casting error, as if you try with e.g. 9.8 should be shot out 9.8. the subject had already been dealt with qui.
 
I will prove to scrivere:
dim parametro os double
dim vassoluto as double
vassoluto=abs(parameter)
 
So if I did not understand badly: abs (parameter_length) ?
so it doesn't work.
follow this example, it works.
Code:
public sub calcula_assoluted()

dim parameter_input, vassoluto as double

parameter_input = -9.8
vassoluto = abs(parameter_input)

msgbox "absolute value of " & parameter_input & " = " & vassolute

end
 

Attachments

  • va.webp
    va.webp
    4 KB · Views: 2
or divide for 1mm
100mm / 1mm

p.s.
It is no longer called "old age", but "excess of experience". ;)
 
I think there's a pro quo here. I believe that the author of the post @takes volesse dire rendere adimensional and not absolute value.
 
or divide for 1mm
100mm / 1mm

p.s.
It is no longer called "old age", but "excess of experience". ;)
why as I said mm*1su doesn't work and mm/1su as you say it works? :cool:
is it not that you are recommended?? ? ? .
Thank you.
p.s. excess experience you say? mha, let's take it for good
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top