Hi, I seem to require an exact rounded calculation in one of my scripts. I need to know what the .NET equivalent for a "floor" call is. That is I want to round an amount to the nearest whole integer, and I was able to do this in WL4 with the floor function, and I really got to say the programming guide in WL5 is useless essentially, certainly not as useful as the older guide from WL4.
Anyway, the old call was value=floor(aseriesvalue); from a float. The guide did not actually explain what the significance of declaring a variable by,say double sum = 0d; It is unclear if by the "0d" equalling this value if that is the function that will round a double to an integer.
Size:
Color:
CODE:
Please log in to see this code.
QUOTE:
I really got to say the programming guide in WL5 is useless essentially, certainly not as useful as the older guide from WL4
We don't intend to rewrite all the material already available to you about .NET and C#. The WealthScript Programming Guide instructs, by example, how to accomplish typical tasks for programming Trading Strategies with WealthScript.
Size:
Color:
Size:
Color: