From 0b82eef7140123e29e2628232e3cc7f740d094f2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 18 Apr 2015 20:11:59 -0700 Subject: 1099 - new recipe: convert integer to decimal string --- cpp/021arithmetic | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/021arithmetic') diff --git a/cpp/021arithmetic b/cpp/021arithmetic index 6f7fb1f3..a5ca095a 100644 --- a/cpp/021arithmetic +++ b/cpp/021arithmetic @@ -177,7 +177,7 @@ recipe main [ :(before "End Primitive Recipe Declarations") DIVIDE_WITH_REMAINDER, :(before "End Primitive Recipe Numbers") -Recipe_number["divide_with_remainder"] = DIVIDE_WITH_REMAINDER; +Recipe_number["divide-with-remainder"] = DIVIDE_WITH_REMAINDER; :(before "End Primitive Recipe Implementations") case DIVIDE_WITH_REMAINDER: { trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name; @@ -199,7 +199,7 @@ case DIVIDE_WITH_REMAINDER: { :(scenario "divide_with_remainder_literal") recipe main [ - 1:integer, 2:integer <- divide_with_remainder 9:literal, 2:literal + 1:integer, 2:integer <- divide-with-remainder 9:literal, 2:literal ] +run: instruction main/0 +run: ingredient 0 is 9 @@ -213,7 +213,7 @@ recipe main [ recipe main [ 1:integer <- copy 27:literal 2:integer <- copy 11:literal - 3:integer, 4:integer <- divide_with_remainder 1:integer, 2:integer + 3:integer, 4:integer <- divide-with-remainder 1:integer, 2:integer ] +run: instruction main/2 +run: ingredient 0 is 1 -- cgit 1.4.1-2-gfad0 mu/log/html/exception1.mu.html?h=hlt'>log blame commit diff stats
path: root/html/exception1.mu.html
blob: 2810d7480b8b5739b0e10f423c2362a6d8a703f0 (plain) (tree)
1
2
3
4
5
6