<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Sample7</title> <link rel="stylesheet" href="sample7.css"> </head> <body> <h1>Sample7</h1> <div id="result"></div> <script type="application/dart" src="sample7.dart"></script> <script src="packages/browser/dart.js"></script> </body> </html>
import 'dart:html'; void main() { double myNum = 0.4649; querySelector("result").text = myNum.toString(); }