in B4X documentation:
Double (4 bytes) 4 bytes floating point. Similar to Float in other B4x tools.
Float is the same as Double. Short is the same as Int.
in arduino:
Floating-point numbers can be as large as 3.4028235E+38 and as low as -3.4028235E+38. They are stored as 32 bits (4 bytes) of information.
if my understanding is correct, in your case Double should work...
in B4X documentation:
Double (4 bytes) 4 bytes floating point. Similar to Float in other B4x tools.
Float is the same as Double. Short is the same as Int.
in arduino:
Floating-point numbers can be as large as 3.4028235E+38 and as low as -3.4028235E+38. They are stored as 32 bits (4 bytes) of information.
if my understanding is correct, in your case Double should work...
I have rewritten the library code and now the second i2c hard bus work.
I have test both examples
the lib use variable -> in funktion the result is ok (2.38)-> in B4R Log =0
the lib use pointers -> in funktion the result is ok(2.38) -> in B4R Log =0
so the problem must be in passing the value from function to b4r