[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48013] Java integration: conversion to double
From: |
Ernst Reissner |
Subject: |
[Octave-bug-tracker] [bug #48013] Java integration: conversion to double |
Date: |
Sat, 20 Aug 2016 22:08:49 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0 |
Follow-up Comment #27, bug #48013 (project octave):
Dear Philip,
could you tell me where the failure in my thoughts is located?
I was sure to have found out,
that matlab does automatic conversion on primitive number types
and their wrappers,
but not on general java.lang.Number's.
So in particular not on java.math.BigDecimal.
If you want so see double here,
you definitely have to apply BigDecimal.doubleValue()
which is right what function double(.) does.
You can do it directly or via double(.).
I doubt the 'very fact... that Matlab does not need manual conversion here. '
Do you have a Matlab at hand? I tried to find out from the documentation.
I would like to point you to:
http://uk.mathworks.com/help/matlab/matlab_external/handling-data-returned-from-a-java-method.html
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48013>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, (continued)
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Mike Miller, 2016/08/03
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Ernst Reissner, 2016/08/03
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Ernst Reissner, 2016/08/11
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Mike Miller, 2016/08/11
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Philip Nienhuis, 2016/08/20
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Philip Nienhuis, 2016/08/20
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Ernst Reissner, 2016/08/20
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Ernst Reissner, 2016/08/20
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Ernst Reissner, 2016/08/20
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Philip Nienhuis, 2016/08/20
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double,
Ernst Reissner <=
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Philip Nienhuis, 2016/08/21
- [Octave-bug-tracker] [bug #48013] Java integration: conversion to double, Ernst Reissner, 2016/08/22