Tag Info

New answers tagged

4

There are a number of issues here: There is no need to wrap Dynamic around the inner variables of the final input field expression. Indeed, it is harmful as Dynamic is purely a user interface element and acts as a holding wrapper in any other context (like an arithmetic expression). The use of Function in the output expression will cause the variables x ...


1

I opened HxD and pasted your numbers and saved as abc.dat. Then this worked for (8.0.4.0): Import["C:\\f1\\f2\\Desktop\\abc.dat"] (*{{6.32974339429986413842620080104840\[CenterDot]10^-8},{-0.0000254959851559626153977549441655316},{-0.0000407099633836181102881717011448444}}*)


1

This accepts a plain number or "E" format or "*^" notation.. ClearAll["Global`*"]; SetAttributes[sciInput, HoldFirst]; inst[numstring_] := InputField[numstring, String, FieldSize -> {20, 1}, FieldHint -> "enter a number"]; sciInput[result_] := DynamicModule[{sig, nn}, ...


4

This Answer is based upon Kuba's comment above regarding two InputFields, so credit should go to him for the idea, this is just an implementation. However, the problem interested me because I have a similar issue to solve regarding entering units into answers, and this question and Kuba's comment made me think of a related solution to that. One can use ...



Top 50 recent answers are included