Comments (5)
Probably this is good to be added, will see. Thank you.
for now, you can send raw binary.
function floatToUint8Array(floatValue) {
const floatArray = new Float32Array([floatValue]);
return new Uint8Array(floatArray.buffer);
}
const myFloat = 3.14159;
myBackendFun(floatToUint8Array(myFloat))
from webui.
@hassandraga Wouldn't webui_return_float
be nice aswell?
from webui.
Added.
myBackendFun(123.456)
double f = webui_get_float(e);
from webui.
I forgot. Sorry, my bad!
Added.
from webui.
from webui.
Related Issues (20)
- add cmake cross build
- Can't run example HOT 3
- Errors compiling minimal example: "undefined reference to pthread_create" and "undefined reference to `dlopen'" (and my fixes) HOT 5
- `set_title` function HOT 2
- `webui_set_root_folder` is broken HOT 3
- Regession with the latest changes HOT 6
- set_profile & CORS HOT 9
- SvelteKit + webui problem HOT 23
- Proposal: Option to bind listener on backend that is handled without spawning a new thread HOT 7
- Frameless windows HOT 3
- Segmentation fault on calls to backend functions HOT 6
- get_float does not work correctly HOT 10
- Fix All Issues
- Fix All Core Bugs
- Build ARM CI with TLS HOT 1
- Update Documentation HOT 2
- auto update HOT 3
- Update Wrappers to 2.5.0.Beta.2 HOT 4
- feat: get all available browsers? HOT 2
- Accessibility Request: High Contrast Management HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webui.