Hi All,
although I define the Field input to store the division result with an 8 digit format.
144 / 17
// ##,###.00000000
my division operation seems to only return 6 digits after coma.
8.470588
//-----------
Var nombre As Double = input1.Value.ToInteger
Var quotien As Double = input2.Value.ToInteger
Var x As Double
x = nombre /quotien
ResuDIV.Value = x.ToString
//------------
Is there a way/Format that cab retreive more digits ?
such as :
8,470588235
I’m not sure about the actual length if decimals that will be precise as it depends on the length of the left part i guess. Maybe @Christian_Schmitz or @Tim_Hare know the correct answers for this?
Hi Alberto, I 'm trying to figure out how to make use of this plugin in my script (so as to see it in action) I’ve never config plugin use in Xojo - only made a copy of fpPlugin.zip in the plugin folder…
Would you know how to set it up in an Action button for my division ?
Thanks
I only have experience with Decimal Plugin.
Steps:
unzip DecimalPlugin.zip
copy ‘Decimal Plugin.xojo_plugin’ to Xojo’s Plugin folder
restart Xojo
put this code in Action event:
var nombre as decimal = 144
var quotien as decimal = 17
var x as Decimal
DecSetPrecision(32)
DecSetScale(25)
x = nombre / quotien
ResuDIV.Value = str(x)
str(x) will be 8.4705882352941176470588235 because we set the scale to 25, if you set it to 20 you will get the same result as your OS calculator.